MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetTableInsensitive

Method GetTableInsensitive

server/tables/database.go:33–42  ·  view source on GitHub ↗

GetTableInsensitive implements the interface sql.DatabaseSchema.

(ctx *sql.Context, tblName string)

Source from the content-addressed store, hash-verified

31
32// GetTableInsensitive implements the interface sql.DatabaseSchema.
33func (d Database) GetTableInsensitive(ctx *sql.Context, tblName string) (sql.Table, bool, error) {
34 // Even though this is named "GetTableInsensitive", due to differences in Postgres and MySQL, this should perform an
35 // exact search.
36 if tableMap, ok := handlers[d.db.Schema()]; ok {
37 if handler, ok := tableMap[tblName]; ok {
38 return NewVirtualTable(handler, d.db), true, nil
39 }
40 }
41 return nil, false, nil
42}
43
44// GetTableNames implements the interface sql.DatabaseSchema.
45func (d Database) GetTableNames(ctx *sql.Context) ([]string, error) {

Callers 10

GetSqlTableFromContextFunction · 0.45
cachePgConstraintsFunction · 0.45
iterateTablesFunction · 0.45
RunCallbackFunction · 0.45
runTableFunction · 0.45
RowIterMethod · 0.45
RowIterMethod · 0.45
validateForeignKeyMethod · 0.45
RowIterMethod · 0.45

Calls 2

NewVirtualTableFunction · 0.85
SchemaMethod · 0.65

Tested by

no test coverage detected