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

Method HashOf

core/rootvalue.go:483–492  ·  view source on GitHub ↗

HashOf implements the interface doltdb.RootValue.

()

Source from the content-addressed store, hash-verified

481
482// HashOf implements the interface doltdb.RootValue.
483func (root *RootValue) HashOf() (hash.Hash, error) {
484 if root.hash.IsEmpty() {
485 var err error
486 root.hash, err = root.st.NomsValue().Hash(root.vrw.Format())
487 if err != nil {
488 return hash.Hash{}, nil
489 }
490 }
491 return root.hash, nil
492}
493
494// HasTable implements the interface doltdb.RootValue.
495func (root *RootValue) HasTable(ctx context.Context, tName doltdb.TableName) (bool, error) {

Callers 4

GetTableHashMethod · 0.45
rootValueChangedFunction · 0.45
in_subquery.goFile · 0.45
EvalMethod · 0.45

Calls 4

HashMethod · 0.80
FormatMethod · 0.65
IsEmptyMethod · 0.45
NomsValueMethod · 0.45

Tested by

no test coverage detected