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

Method listTables

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

Source from the content-addressed store, hash-verified

1193}
1194
1195func (c *Completer) listTables(schema string) []string {
1196 if !c.ensureMetadata(schema) {
1197 return nil
1198 }
1199 schemaMeta := c.metadataCache[schema].GetSchemaMetadata("")
1200 if schemaMeta == nil {
1201 return nil
1202 }
1203 return schemaMeta.ListTableNames()
1204}
1205
1206func (c *Completer) listViews(schema string) []string {
1207 if !c.ensureMetadata(schema) {

Callers 1

insertTablesMethod · 0.45

Calls 3

ensureMetadataMethod · 0.95
GetSchemaMetadataMethod · 0.80
ListTableNamesMethod · 0.80

Tested by

no test coverage detected