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

Method listAllDatabases

backend/plugin/parser/mysql/completion.go:1138–1149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1136}
1137
1138func (c *Completer) listAllDatabases() []string {
1139 var result []string
1140 if c.defaultDatabase != "" {
1141 result = append(result, c.defaultDatabase)
1142 }
1143 for databaseName := range c.metadataCache {
1144 if databaseName != c.defaultDatabase {
1145 result = append(result, databaseName)
1146 }
1147 }
1148 return result
1149}
1150
1151func (c *Completer) listTables(database string) []string {
1152 if _, exists := c.metadataCache[database]; !exists {

Callers 1

insertDatabasesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected