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

Method Fetch

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

Source from the content-addressed store, hash-verified

188}
189
190func (tx *CachedTransaction) Fetch(s *schema.Schema, filter transaction.Filter, options *transaction.ViewOptions) (*schema.Resource, error) {
191 return tx.FetchContext(context.Background(), s, filter, options)
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)

Callers

nothing calls this directly

Calls 1

FetchContextMethod · 0.95

Tested by

no test coverage detected