MCPcopy Create free account
hub / github.com/bytebase/bytebase / NewStandardCompleter

Function NewStandardCompleter

backend/plugin/parser/tsql/completion.go:474–477  ·  view source on GitHub ↗
(ctx context.Context, cCtx base.CompletionContext, statement string, caretLine int, caretOffset int)

Source from the content-addressed store, hash-verified

472}
473
474func NewStandardCompleter(ctx context.Context, cCtx base.CompletionContext, statement string, caretLine int, caretOffset int) *Completer {
475 sql, byteOffset := computeSQLAndByteOffset(statement, caretLine, caretOffset, false /* tricky */)
476 return newCompleter(ctx, cCtx, sql, byteOffset)
477}
478
479func NewTrickyCompleter(ctx context.Context, cCtx base.CompletionContext, statement string, caretLine int, caretOffset int) *Completer {
480 sql, byteOffset := computeSQLAndByteOffset(statement, caretLine, caretOffset, true /* tricky */)

Callers 1

CompletionFunction · 0.70

Calls 2

computeSQLAndByteOffsetFunction · 0.70
newCompleterFunction · 0.70

Tested by

no test coverage detected