HashOf implements the interface doltdb.RootValue.
()
| 481 | |
| 482 | // HashOf implements the interface doltdb.RootValue. |
| 483 | func (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. |
| 495 | func (root *RootValue) HasTable(ctx context.Context, tName doltdb.TableName) (bool, error) { |
no test coverage detected