Skip to content
# Function: getCompletionSuggestions()

getCompletionSuggestions(sql, cursorPosition): object[]

Defined in: packages/core/src/utils/IntelliSenseApi.ts:180

Get completion suggestions based on cursor context and scope

Uses the new IntelliSense interface to provide targeted completion suggestions. This function leverages the suggestion-based design to efficiently determine what completions should be offered.

Parameters

sql

string

SQL text

cursorPosition

Cursor position

number | LineColumn

Returns

object[]

Array of completion suggestions with context information

Released under the MIT License.