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

Method GetDatabaseSchemas

core/rootvalue.go:339–346  ·  view source on GitHub ↗

GetDatabaseSchemas implements the interface doltdb.RootValue.

(ctx context.Context)

Source from the content-addressed store, hash-verified

337
338// GetDatabaseSchemas implements the interface doltdb.RootValue.
339func (root *RootValue) GetDatabaseSchemas(ctx context.Context) ([]schema.DatabaseSchema, error) {
340 existingSchemas, err := root.st.GetSchemas(ctx)
341 if err != nil {
342 return nil, err
343 }
344
345 return existingSchemas, nil
346}
347
348// GetFeatureVersion implements the interface doltdb.RootValue.
349func (root *RootValue) GetFeatureVersion(ctx context.Context) (ver doltdb.FeatureVersion, ok bool, err error) {

Callers 2

DebugStringMethod · 0.95
schemaNamesFunction · 0.80

Calls 1

GetSchemasMethod · 0.80

Tested by

no test coverage detected