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

Method Update

db/journal/store.go:341–343  ·  view source on GitHub ↗
(ctx context.Context, e Entry, c Constraint)

Source from the content-addressed store, hash-verified

339}
340
341func (s *Store) Update(ctx context.Context, e Entry, c Constraint) error {
342 return s.commitWithConstraint(ctx, e.Key(), c, &Update{e})
343}
344
345func (s *Store) commitWithConstraint(ctx context.Context, key string, c Constraint, e Entry) error {
346 return s.commit(ctx, func() error {

Callers 1

commitMethod · 0.45

Calls 2

commitWithConstraintMethod · 0.95
KeyMethod · 0.65

Tested by

no test coverage detected