(c *Completer, schemas map[string]bool)
| 237 | } |
| 238 | |
| 239 | func (m CompletionMap) insertTables(c *Completer, schemas map[string]bool) { |
| 240 | for schema := range schemas { |
| 241 | if len(schema) == 0 { |
| 242 | for _, table := range c.cteTables { |
| 243 | m.Insert(base.Candidate{ |
| 244 | Type: base.CandidateTypeTable, |
| 245 | Text: c.quotedIdentifierIfNeeded(table.Table), |
| 246 | }) |
| 247 | } |
| 248 | continue |
| 249 | } |
| 250 | for _, table := range c.listTables(schema) { |
| 251 | m.Insert(base.Candidate{ |
| 252 | Type: base.CandidateTypeTable, |
| 253 | Text: c.quotedIdentifierIfNeeded(table), |
| 254 | }) |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | func (m CompletionMap) insertViews(c *Completer, schemas map[string]bool) { |
| 260 | for schema := range schemas { |
no test coverage detected