(c *Completer)
| 264 | } |
| 265 | |
| 266 | func (m CompletionMap) insertAllColumns(c *Completer) { |
| 267 | for _, schema := range c.listAllDatabases() { |
| 268 | if !c.ensureMetadata(schema) { |
| 269 | continue |
| 270 | } |
| 271 | schemaMeta := c.metadataCache[schema].GetSchemaMetadata("") |
| 272 | if schemaMeta == nil { |
| 273 | continue |
| 274 | } |
| 275 | for _, table := range schemaMeta.ListTableNames() { |
| 276 | tableMeta := schemaMeta.GetTable(table) |
| 277 | if tableMeta == nil { |
| 278 | continue |
| 279 | } |
| 280 | for _, column := range tableMeta.GetProto().GetColumns() { |
| 281 | m.Insert(c.columnCandidate(schema, table, column.Name, column.Type, !column.Nullable, column.Comment)) |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | func (m CompletionMap) insertColumns(c *Completer, schemas, tables map[string]bool) { |
| 288 | for schema := range schemas { |
no test coverage detected