(schema string)
| 1215 | } |
| 1216 | |
| 1217 | func (c *Completer) listSequences(schema string) []string { |
| 1218 | if !c.ensureMetadata(schema) { |
| 1219 | return nil |
| 1220 | } |
| 1221 | schemaMeta := c.metadataCache[schema].GetSchemaMetadata("") |
| 1222 | if schemaMeta == nil { |
| 1223 | return nil |
| 1224 | } |
| 1225 | return schemaMeta.ListSequenceNames() |
| 1226 | } |
| 1227 | |
| 1228 | func (c *Completer) ensureMetadata(schema string) bool { |
| 1229 | if schema == "" || c.getMetadata == nil { |
no test coverage detected