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

Function NewSoftDelete

service/universally/delete.go:29–32  ·  view source on GitHub ↗
(s store.ISearchStore[E])

Source from the content-addressed store, hash-verified

27}
28
29func NewSoftDelete[E any](s store.ISearchStore[E]) IServiceDelete {
30 assert(new(E))
31 return &imlServiceSoftDelete[E]{store: s}
32}
33
34func (p *imlServiceDelete[E]) Delete(ctx context.Context, uuid string) error {
35 return p.store.Transaction(ctx, func(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected