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

Function candidateKey

backend/plugin/parser/partiql/completion.go:133–135  ·  view source on GitHub ↗

candidateKey produces a dedup key for a candidate.

(text string, typ base.CandidateType)

Source from the content-addressed store, hash-verified

131
132// candidateKey produces a dedup key for a candidate.
133func candidateKey(text string, typ base.CandidateType) string {
134 return string(typ) + ":" + text
135}
136
137// isColumnContext returns true if the cursor position appears to be in a
138// context where column names should be suggested. This covers:

Callers 2

CompletionFunction · 0.85
addColumnCandidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected