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

Function schemaNames

core/rootvalue.go:574–585  ·  view source on GitHub ↗

schemaNames returns all names of all schemas which may have tables

(ctx context.Context, root doltdb.RootValue)

Source from the content-addressed store, hash-verified

572
573// schemaNames returns all names of all schemas which may have tables
574func schemaNames(ctx context.Context, root doltdb.RootValue) ([]string, error) {
575 dbSchemas, err := root.GetDatabaseSchemas(ctx)
576 if err != nil {
577 return nil, err
578 }
579
580 schNames := make([]string, len(dbSchemas)+1)
581 for i, dbSchema := range dbSchemas {
582 schNames[i] = dbSchema.Name
583 }
584 return schNames, nil
585}
586
587// NodeStore implements the interface doltdb.RootValue.
588func (root *RootValue) NodeStore() tree.NodeStore {

Callers 1

IterTablesMethod · 0.85

Calls 1

GetDatabaseSchemasMethod · 0.80

Tested by

no test coverage detected