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

Method Values

db/journal/store.go:258–269  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

256}
257
258func (s *Store) Values(ctx context.Context) ([]any, error) {
259 if err := s.load(ctx); err != nil {
260 return nil, err
261 }
262 s.mu.RLock()
263 vals := make([]any, 0, len(s.table))
264 for _, val := range s.table {
265 vals = append(vals, val)
266 }
267 s.mu.RUnlock()
268 return vals, nil
269}
270
271func (s *Store) All(ctx context.Context) ([]Entry, error) {
272 if err := s.load(ctx); err != nil {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected