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

Function LoadProcedures

core/procedures/collection_funcs.go:85–97  ·  view source on GitHub ↗

LoadProcedures loads the procedures collection from the given root.

(ctx context.Context, root objinterface.RootValue)

Source from the content-addressed store, hash-verified

83
84// LoadProcedures loads the procedures collection from the given root.
85func LoadProcedures(ctx context.Context, root objinterface.RootValue) (*Collection, error) {
86 m, ok, err := storage.GetProllyMap(ctx, root)
87 if err != nil {
88 return nil, err
89 }
90 if !ok {
91 m, err = prolly.NewEmptyAddressMap(root.NodeStore())
92 if err != nil {
93 return nil, err
94 }
95 }
96 return NewCollection(ctx, m, root.NodeStore())
97}
98
99// ResolveNameFromObjects implements the interface objinterface.Collection.
100func (*Collection) ResolveNameFromObjects(ctx context.Context, name doltdb.TableName, rootObjects []objinterface.RootObject) (doltdb.TableName, id.Id, error) {

Callers 2

LoadCollectionMethod · 0.85

Calls 3

GetProllyMapMethod · 0.80
NodeStoreMethod · 0.80
NewCollectionFunction · 0.70

Tested by

no test coverage detected