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

Method GetTable

backend/store/model/database.go:333–339  ·  view source on GitHub ↗

GetTable gets the schema by name.

(name string)

Source from the content-addressed store, hash-verified

331
332// GetTable gets the schema by name.
333func (s *SchemaMetadata) GetTable(name string) *TableMetadata {
334 if s == nil {
335 return nil
336 }
337 nameID := normalizeNameByCaseSensitivity(name, s.isObjectCaseSensitive)
338 return s.internalTables[nameID]
339}
340
341// GetIndex gets the index by name.
342// Index names are unique within a schema in most databases.

Callers 15

CreateTableMethod · 0.95
DropTableMethod · 0.95
RenameTableMethod · 0.95
loadCatalogMetadataFunction · 0.45
tableColumnsMethod · 0.45
buildCompletionCatalogFunction · 0.45
omniAccessTableExistsMethod · 0.45
classifyColumnsFunction · 0.45
insertColumnsMethod · 0.45

Calls 1