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

Method Remove

db/data/object.go:146–151  ·  view source on GitHub ↗

Remove deletes the row object and its seek index. Any 'not found' errors are ignored.

(ctx context.Context, engine storage.Engine, path *storage.URI)

Source from the content-addressed store, hash-verified

144// Remove deletes the row object and its seek index.
145// Any 'not found' errors are ignored.
146func (o Object) Remove(ctx context.Context, engine storage.Engine, path *storage.URI) error {
147 if err := engine.DeleteByPrefix(ctx, o.ObjectPrefix(path)); err != nil && !errors.Is(err, fs.ErrNotExist) {
148 return err
149 }
150 return nil
151}

Callers

nothing calls this directly

Calls 3

ObjectPrefixMethod · 0.95
IsMethod · 0.80
DeleteByPrefixMethod · 0.65

Tested by

no test coverage detected