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

Method LoadCollectionHash

core/functions/collection_funcs.go:76–82  ·  view source on GitHub ↗

LoadCollectionHash implements the interface objinterface.Collection.

(ctx context.Context, root objinterface.RootValue)

Source from the content-addressed store, hash-verified

74
75// LoadCollectionHash implements the interface objinterface.Collection.
76func (*Collection) LoadCollectionHash(ctx context.Context, root objinterface.RootValue) (hash.Hash, error) {
77 m, ok, err := storage.GetProllyMap(ctx, root)
78 if err != nil || !ok {
79 return hash.Hash{}, err
80 }
81 return m.HashOf(), nil
82}
83
84// LoadFunctions loads the functions collection from the given root.
85func LoadFunctions(ctx context.Context, root objinterface.RootValue) (*Collection, error) {

Callers 1

DiffersFromMethod · 0.95

Calls 2

GetProllyMapMethod · 0.80
HashOfMethod · 0.45

Tested by

no test coverage detected