(c *Completer)
| 282 | } |
| 283 | |
| 284 | func (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 | |
| 297 | func (m CompletionMap) insertTablesWithPrefix(c *Completer, schemas map[string]bool, includeSchemaPrefix bool) { |
| 298 | for schema := range schemas { |
no test coverage detected