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

Method insertDatabases

backend/plugin/parser/plsql/completion.go:215–222  ·  view source on GitHub ↗
(c *Completer)

Source from the content-addressed store, hash-verified

213}
214
215func (m CompletionMap) insertDatabases(c *Completer) {
216 for _, name := range c.listAllDatabases() {
217 m.Insert(base.Candidate{
218 Type: base.CandidateTypeSchema,
219 Text: c.quotedIdentifierIfNeeded(name),
220 })
221 }
222}
223
224func (m CompletionMap) insertViews(c *Completer, schemas map[string]bool) {
225 for schema := range schemas {

Calls 3

InsertMethod · 0.95
listAllDatabasesMethod · 0.45

Tested by

no test coverage detected