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

Method Update

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

Source from the content-addressed store, hash-verified

677}
678
679func (tx *Transaction) Update(resource *schema.Resource) error {
680 return tx.UpdateContext(context.Background(), resource)
681}
682
683//Update update resource in the db
684func (tx *Transaction) UpdateContext(ctx context.Context, resource *schema.Resource) error {

Callers

nothing calls this directly

Calls 1

UpdateContextMethod · 0.95

Tested by

no test coverage detected