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

Method LockFetchContext

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

Source from the content-addressed store, hash-verified

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)
205 return lockFetchContextHelper(err, list, filter)
206}

Callers 1

LockFetchMethod · 0.95

Calls 2

LockListContextMethod · 0.95
lockFetchContextHelperFunction · 0.85

Tested by

no test coverage detected