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

Method exec

db/sql/sql.go:617–621  ·  view source on GitHub ↗
(ctx context.Context, sql string, args ...interface{})

Source from the content-addressed store, hash-verified

615}
616
617func (tx *Transaction) exec(ctx context.Context, sql string, args ...interface{}) error {
618 tx.logQuery(sql, args...)
619 _, err := tx.transaction.ExecContext(ctx, sql, args...)
620 return err
621}
622
623func (tx *Transaction) Create(resource *schema.Resource) error {
624 return tx.CreateContext(context.Background(), resource)

Callers 5

ExecContextMethod · 0.95
CreateContextMethod · 0.95
UpdateContextMethod · 0.95
StateUpdateContextMethod · 0.95
DeleteContextMethod · 0.95

Calls 2

logQueryMethod · 0.95
ExecContextMethod · 0.65

Tested by

no test coverage detected