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

Method AddDataObject

db/commits/patch.go:66–71  ·  view source on GitHub ↗
(object *data.Object)

Source from the content-addressed store, hash-verified

64}
65
66func (p *Patch) AddDataObject(object *data.Object) error {
67 if Exists(p.base, object.ID) {
68 return ErrExists
69 }
70 return p.diff.AddDataObject(object)
71}
72
73func (p *Patch) DeleteObject(id ksuid.KSUID) error {
74 if p.diff.Exists(id) {

Callers 3

DeleteWhereMethod · 0.95
CommitCompactMethod · 0.95
DiffFunction · 0.95

Calls 2

ExistsFunction · 0.70
AddDataObjectMethod · 0.65

Tested by

no test coverage detected