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

Method FetchContext

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

Source from the content-addressed store, hash-verified

192}
193
194func (tx *CachedTransaction) FetchContext(ctx context.Context, s *schema.Schema, filter transaction.Filter, options *transaction.ViewOptions) (*schema.Resource, error) {
195 list, _, err := tx.ListContext(ctx, s, filter, options, nil)
196 return fetchContextHelper(list, err, filter)
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)

Callers 1

FetchMethod · 0.95

Calls 2

ListContextMethod · 0.95
fetchContextHelperFunction · 0.85

Tested by

no test coverage detected