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

Function OpenBranch

db/branch.go:42–48  ·  view source on GitHub ↗
(ctx context.Context, config *branches.Config, engine storage.Engine, poolPath *storage.URI, pool *Pool)

Source from the content-addressed store, hash-verified

40}
41
42func OpenBranch(ctx context.Context, config *branches.Config, engine storage.Engine, poolPath *storage.URI, pool *Pool) (*Branch, error) {
43 return &Branch{
44 Config: *config,
45 pool: pool,
46 engine: engine,
47 }, nil
48}
49
50func (b *Branch) Load(ctx context.Context, sctx *super.Context, r sio.Reader, author, message, meta string) (ksuid.KSUID, error) {
51 w, err := NewWriter(ctx, sctx, b.pool)

Callers 1

openBranchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected