MCPcopy Create free account
hub / github.com/brimdata/super / NewPatch

Function NewPatch

db/commits/patch.go:28–33  ·  view source on GitHub ↗
(base View)

Source from the content-addressed store, hash-verified

26var _ Writeable = (*Patch)(nil)
27
28func NewPatch(base View) *Patch {
29 return &Patch{
30 base: base,
31 diff: NewSnapshot(),
32 }
33}
34
35func (p *Patch) Lookup(id ksuid.KSUID) (*data.Object, error) {
36 if s, err := p.diff.Lookup(id); err == nil {

Callers 5

DeleteWhereMethod · 0.92
CommitCompactMethod · 0.92
DiffFunction · 0.85
PatchOfCommitMethod · 0.85
PatchOfPathMethod · 0.85

Calls 1

NewSnapshotFunction · 0.85

Tested by

no test coverage detected