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

Function loadMeta

db/branch.go:97–106  ·  view source on GitHub ↗
(sctx *super.Context, meta string)

Source from the content-addressed store, hash-verified

95}
96
97func loadMeta(sctx *super.Context, meta string) (super.Value, error) {
98 if meta == "" {
99 return super.Null, nil
100 }
101 val, err := sup.ParseValue(super.NewContext(), meta)
102 if err != nil {
103 return sctx.Missing(), fmt.Errorf("%w %q: %s", ErrInvalidCommitMeta, meta, err)
104 }
105 return val, nil
106}
107
108func (b *Branch) Delete(ctx context.Context, ids []ksuid.KSUID, author, message string) (ksuid.KSUID, error) {
109 return b.commit(ctx, func(parent *branches.Config, retries int) (*commits.Object, error) {

Callers 3

LoadMethod · 0.85
DeleteWhereMethod · 0.85
CommitCompactMethod · 0.85

Calls 3

ParseValueFunction · 0.92
NewContextFunction · 0.92
MissingMethod · 0.80

Tested by

no test coverage detected