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

Method Get

stores/universally/commit/store.go:162–169  ·  view source on GitHub ↗
(ctx context.Context, uuid string)

Source from the content-addressed store, hash-verified

160 return ho, nil
161}
162func (h *Store[H]) Get(ctx context.Context, uuid string) (*Commit[H], error) {
163 var commit = new(Commit[H])
164 err := h.db.DB(ctx).Table(h.commitTableName).Where("`uuid` = ?", uuid).First(commit).Error
165 if err != nil {
166 return nil, err
167 }
168 return commit, nil
169}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected