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

Method columnCandidate

backend/plugin/parser/plsql/completion.go:322–333  ·  view source on GitHub ↗
(schema, table, name, typ string, notNull bool, comment string)

Source from the content-addressed store, hash-verified

320}
321
322func (c *Completer) columnCandidate(schema, table, name, typ string, notNull bool, comment string) base.Candidate {
323 definition := fmt.Sprintf("%s.%s | %s", schema, table, typ)
324 if notNull {
325 definition += ", NOT NULL"
326 }
327 return base.Candidate{
328 Type: base.CandidateTypeColumn,
329 Text: c.quotedIdentifierIfNeeded(name),
330 Definition: definition,
331 Comment: comment,
332 }
333}
334
335func (c *Completer) convertCandidates(candidates *oracleparser.CandidateSet) []base.Candidate {
336 keywordEntries := make(CompletionMap)

Callers 2

insertAllColumnsMethod · 0.80
insertColumnsMethod · 0.80

Calls 1

Tested by

no test coverage detected