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

Method GetSchema

server/tables/pg_database.go:95–101  ·  view source on GitHub ↗

GetSchema overrides sqle.Database.GetSchema to apply Doltgres schema wrapping.

(ctx *sql.Context, schemaName string)

Source from the content-addressed store, hash-verified

93
94// GetSchema overrides sqle.Database.GetSchema to apply Doltgres schema wrapping.
95func (d *PgDatabase) GetSchema(ctx *sql.Context, schemaName string) (sql.DatabaseSchema, bool, error) {
96 schema, ok, err := d.Database.GetSchema(ctx, schemaName)
97 if !ok || err != nil {
98 return schema, ok, err
99 }
100 return applySchemaWrap(schemaName, schema), true, nil
101}
102
103// GetTableInsensitive overrides sqle.Database.GetTableInsensitive to check the pg_catalog
104// virtual schema before falling back to user tables.

Callers 14

GetTableInsensitiveMethod · 0.95
DropTableMethod · 0.95
IterTablesMethod · 0.45
GetSqlTableFromContextFunction · 0.45
GetSchemaMethod · 0.45
BeforeTableModifyColumnFunction · 0.45
AfterTableDropColumnFunction · 0.45
AfterTableRenameColumnFunction · 0.45
AfterTableRenameFunction · 0.45
BeforeTableAddColumnFunction · 0.45
AfterTableAddColumnFunction · 0.45

Calls 1

applySchemaWrapFunction · 0.85

Tested by

no test coverage detected