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

Function LoadExtensions

core/extensions/collection_funcs.go:95–107  ·  view source on GitHub ↗

LoadExtensions loads the extensions collection from the given root.

(ctx context.Context, root objinterface.RootValue)

Source from the content-addressed store, hash-verified

93
94// LoadExtensions loads the extensions collection from the given root.
95func LoadExtensions(ctx context.Context, root objinterface.RootValue) (*Collection, error) {
96 m, ok, err := storage.GetProllyMap(ctx, root)
97 if err != nil {
98 return nil, err
99 }
100 if !ok {
101 m, err = prolly.NewEmptyAddressMap(root.NodeStore())
102 if err != nil {
103 return nil, err
104 }
105 }
106 return NewCollection(ctx, m, root.NodeStore())
107}
108
109// ResolveNameFromObjects implements the interface objinterface.Collection.
110func (*Collection) ResolveNameFromObjects(ctx context.Context, name doltdb.TableName, rootObjects []objinterface.RootObject) (doltdb.TableName, id.Id, error) {

Callers 2

LoadCollectionMethod · 0.70

Calls 3

GetProllyMapMethod · 0.80
NodeStoreMethod · 0.80
NewCollectionFunction · 0.70

Tested by

no test coverage detected