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

Method GetView

backend/store/model/database.go:370–373  ·  view source on GitHub ↗

GetView gets the view by name.

(name string)

Source from the content-addressed store, hash-verified

368
369// GetView gets the view by name.
370func (s *SchemaMetadata) GetView(name string) *storepb.ViewMetadata {
371 nameID := normalizeNameByCaseSensitivity(name, s.isObjectCaseSensitive)
372 return s.internalViews[nameID]
373}
374
375func (s *SchemaMetadata) GetProcedure(name string) *storepb.ProcedureMetadata {
376 nameID := normalizeNameByCaseSensitivity(name, s.isDetailCaseSensitive)

Callers 15

CreateViewMethod · 0.95
DropViewMethod · 0.95
RenameViewMethod · 0.95
loadCatalogMetadataFunction · 0.45
tableColumnsMethod · 0.45
buildCompletionCatalogFunction · 0.45
omniAccessTableExistsMethod · 0.45
findTableSchemaMethod · 0.45
existsTableMetadataMethod · 0.45
tableColumnsMethod · 0.45

Calls 1

Tested by

no test coverage detected