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

Method insertSchemas

backend/plugin/parser/pg/completion.go:284–295  ·  view source on GitHub ↗
(c *Completer)

Source from the content-addressed store, hash-verified

282}
283
284func (m CompletionMap) insertSchemas(c *Completer) {
285 // Skip if user has specified the schema.
286 if c.defaultSchema != "" && c.defaultSchema != "public" {
287 return
288 }
289 for _, schema := range c.listAllSchemas() {
290 m.Insert(base.Candidate{
291 Type: base.CandidateTypeSchema,
292 Text: c.quotedIdentifierIfNeeded(schema),
293 })
294 }
295}
296
297func (m CompletionMap) insertTablesWithPrefix(c *Completer, schemas map[string]bool, includeSchemaPrefix bool) {
298 for schema := range schemas {

Callers 1

convertCandidatesMethod · 0.80

Calls 3

InsertMethod · 0.95
listAllSchemasMethod · 0.80

Tested by

no test coverage detected