GetTable gets the schema by name.
(name string)
| 331 | |
| 332 | // GetTable gets the schema by name. |
| 333 | func (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. |