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

Method GetMaterializedView

backend/store/model/database.go:386–389  ·  view source on GitHub ↗

GetMaterializedView gets the materialized view by name.

(name string)

Source from the content-addressed store, hash-verified

384
385// GetMaterializedView gets the materialized view by name.
386func (s *SchemaMetadata) GetMaterializedView(name string) *storepb.MaterializedViewMetadata {
387 nameID := normalizeNameByCaseSensitivity(name, s.isObjectCaseSensitive)
388 return s.internalMaterializedView[nameID]
389}
390
391// GetExternalTable gets the external table by name.
392func (s *SchemaMetadata) GetExternalTable(name string) *ExternalTableMetadata {

Callers 15

DropMaterializedViewMethod · 0.95
buildCompletionCatalogFunction · 0.80
omniAccessTableExistsMethod · 0.80
existsTableMetadataMethod · 0.80
insertColumnsMethod · 0.80
insertAllColumnsMethod · 0.80
addNewSchemaObjectsFunction · 0.80
compareMaterializedViewsFunction · 0.80

Calls 1

Tested by

no test coverage detected