MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / NewCommitWithKey

Function NewCommitWithKey

stores/universally/commit/wtype.go:22–31  ·  view source on GitHub ↗
(name, key string)

Source from the content-addressed store, hash-verified

20}
21
22func NewCommitWithKey[H any](name, key string) *StoreWidthType[H] {
23 return &StoreWidthType[H]{
24 Store: Store[H]{
25 name: name,
26 latestTableName: name + "_latest",
27 commitTableName: name + "_commit",
28 },
29 key: key,
30 }
31}
32func (h *StoreWidthType[H]) List(ctx context.Context, uuids ...string) ([]*Commit[H], error) {
33 return h.Store.List(ctx, uuids...)
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected