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

Method HashOf

core/functions/collection.go:399–405  ·  view source on GitHub ↗

HashOf implements the interface objinterface.RootObject.

(ctx context.Context)

Source from the content-addressed store, hash-verified

397
398// HashOf implements the interface objinterface.RootObject.
399func (function Function) HashOf(ctx context.Context) (hash.Hash, error) {
400 data, err := function.Serialize(ctx)
401 if err != nil {
402 return hash.Hash{}, err
403 }
404 return hash.Of(data), nil
405}
406
407// Name implements the interface objinterface.RootObject.
408func (function Function) Name() doltdb.TableName {

Callers 5

HandleMergeMethod · 0.45
LoadCollectionHashMethod · 0.45
AddFunctionMethod · 0.45
DropFunctionMethod · 0.45
reloadCachesMethod · 0.45

Calls 1

SerializeMethod · 0.95

Tested by

no test coverage detected