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

Method Fetch

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

Source from the content-addressed store, hash-verified

1103}
1104
1105func (tx *Transaction) Fetch(s *schema.Schema, filter transaction.Filter, options *transaction.ViewOptions) (*schema.Resource, error) {
1106 return tx.FetchContext(context.Background(), s, filter, options)
1107}
1108
1109//Fetch resources by ID in the db
1110func (tx *Transaction) FetchContext(ctx context.Context, s *schema.Schema, filter transaction.Filter, options *transaction.ViewOptions) (*schema.Resource, error) {

Callers

nothing calls this directly

Calls 1

FetchContextMethod · 0.95

Tested by

no test coverage detected