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

Method Create

db/sql/sql.go:623–625  ·  view source on GitHub ↗
(resource *schema.Resource)

Source from the content-addressed store, hash-verified

621}
622
623func (tx *Transaction) Create(resource *schema.Resource) error {
624 return tx.CreateContext(context.Background(), resource)
625}
626
627//Create create resource in the db
628func (tx *Transaction) CreateContext(ctx context.Context, resource *schema.Resource) error {

Callers

nothing calls this directly

Calls 1

CreateContextMethod · 0.95

Tested by

no test coverage detected