MCPcopy Index your code
hub / github.com/bytebase/bytebase / NewStandardCompleter

Function NewStandardCompleter

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

Source from the content-addressed store, hash-verified

56}
57
58func NewStandardCompleter(ctx context.Context, cCtx base.CompletionContext, statement string, caretLine int, caretOffset int) *Completer {
59 sql, byteOffset := computeSQLAndByteOffset(statement, caretLine, caretOffset, false /* tricky */)
60 return newCompleter(ctx, cCtx, sql, byteOffset)
61}
62
63func NewTrickyCompleter(ctx context.Context, cCtx base.CompletionContext, statement string, caretLine int, caretOffset int) *Completer {
64 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