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

Method ListForeignTableNames

backend/store/model/database.go:481–489  ·  view source on GitHub ↗

ListForeignTableNames lists the foreign table names.

()

Source from the content-addressed store, hash-verified

479
480// ListForeignTableNames lists the foreign table names.
481func (s *SchemaMetadata) ListForeignTableNames() []string {
482 var result []string
483 for _, table := range s.internalExternalTable {
484 result = append(result, table.GetProto().GetName())
485 }
486
487 slices.Sort(result)
488 return result
489}
490
491// ListMaterializedViewNames lists the materialized view names.
492func (s *SchemaMetadata) ListMaterializedViewNames() []string {

Callers 4

buildCompletionCatalogFunction · 0.80
insertAllColumnsMethod · 0.80
listForeignTablesMethod · 0.80
insertMetadataViewsMethod · 0.80

Calls 2

GetNameMethod · 0.45
GetProtoMethod · 0.45

Tested by

no test coverage detected