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

Method listSequences

backend/plugin/parser/plsql/completion.go:1217–1226  ·  view source on GitHub ↗
(schema string)

Source from the content-addressed store, hash-verified

1215}
1216
1217func (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
1228func (c *Completer) ensureMetadata(schema string) bool {
1229 if schema == "" || c.getMetadata == nil {

Callers 1

insertSequencesMethod · 0.45

Calls 3

ensureMetadataMethod · 0.95
GetSchemaMetadataMethod · 0.80
ListSequenceNamesMethod · 0.80

Tested by

no test coverage detected