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

Method insertDatabases

backend/plugin/parser/mysql/completion.go:230–237  ·  view source on GitHub ↗
(c *Completer)

Source from the content-addressed store, hash-verified

228}
229
230func (m CompletionMap) insertDatabases(c *Completer) {
231 for _, database := range c.listAllDatabases() {
232 m.Insert(base.Candidate{
233 Type: base.CandidateTypeDatabase,
234 Text: database,
235 })
236 }
237}
238
239func (m CompletionMap) insertTables(c *Completer, schemas map[string]bool) {
240 for schema := range schemas {

Callers 1

convertCandidatesMethod · 0.45

Calls 2

InsertMethod · 0.95
listAllDatabasesMethod · 0.45

Tested by

no test coverage detected