MCPcopy Create free account
hub / github.com/cloudwan/gohan / LockFetch

Method LockFetch

db/sql/cached_transaction.go:199–201  ·  view source on GitHub ↗
(s *schema.Schema, filter transaction.Filter, lockPolicy schema.LockPolicy, options *transaction.ViewOptions)

Source from the content-addressed store, hash-verified

197}
198
199func (tx *CachedTransaction) LockFetch(s *schema.Schema, filter transaction.Filter, lockPolicy schema.LockPolicy, options *transaction.ViewOptions) (*schema.Resource, error) {
200 return tx.LockFetchContext(context.Background(), s, filter, lockPolicy, options)
201}
202
203func (tx *CachedTransaction) LockFetchContext(ctx context.Context, s *schema.Schema, filter transaction.Filter, lockPolicy schema.LockPolicy, options *transaction.ViewOptions) (*schema.Resource, error) {
204 list, _, err := tx.LockListContext(ctx, s, filter, nil, nil, lockPolicy)

Callers

nothing calls this directly

Calls 1

LockFetchContextMethod · 0.95

Tested by

no test coverage detected