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

Function OpenStore

db/journal/store.go:69–75  ·  view source on GitHub ↗
(ctx context.Context, engine storage.Engine, logger *zap.Logger, path *storage.URI, keyTypes ...any)

Source from the content-addressed store, hash-verified

67}
68
69func OpenStore(ctx context.Context, engine storage.Engine, logger *zap.Logger, path *storage.URI, keyTypes ...any) (*Store, error) {
70 journal, err := Open(ctx, engine, path)
71 if err != nil {
72 return nil, err
73 }
74 return newStore(journal, logger, keyTypes...), nil
75}
76
77func newStore(journal *Queue, logger *zap.Logger, keyTypes ...any) *Store {
78 return &Store{

Callers 2

OpenStoreFunction · 0.92
OpenStoreFunction · 0.92

Calls 2

newStoreFunction · 0.85
OpenFunction · 0.70

Tested by

no test coverage detected