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

Method LockFetch

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

Source from the content-addressed store, hash-verified

1125}
1126
1127func (tx *Transaction) LockFetch(s *schema.Schema, filter transaction.Filter, lockPolicy schema.LockPolicy, options *transaction.ViewOptions) (*schema.Resource, error) {
1128 return tx.LockFetchContext(context.Background(), s, filter, lockPolicy, options)
1129}
1130
1131// LockFetch fetches & locks a resource
1132func (tx *Transaction) LockFetchContext(ctx context.Context, s *schema.Schema, filter transaction.Filter, lockPolicy schema.LockPolicy, options *transaction.ViewOptions) (*schema.Resource, error) {

Callers

nothing calls this directly

Calls 1

LockFetchContextMethod · 0.95

Tested by

no test coverage detected