MCPcopy
hub / github.com/go-gorp/gorp / exec

Function exec

gorp.go:626–634  ·  view source on GitHub ↗
(e SqlExecutor, query string, args ...interface{})

Source from the content-addressed store, hash-verified

624}
625
626func exec(e SqlExecutor, query string, args ...interface{}) (sql.Result, error) {
627 executor, ctx := extractExecutorAndContext(e)
628
629 if ctx != nil {
630 return executor.ExecContext(ctx, query, args...)
631 }
632
633 return executor.Exec(query, args...)
634}
635
636func prepare(e SqlExecutor, query string) (*sql.Stmt, error) {
637 executor, ctx := extractExecutorAndContext(e)

Callers 4

SavepointMethod · 0.85
RollbackToSavepointMethod · 0.85
ReleaseSavepointMethod · 0.85

Calls 3

ExecContextMethod · 0.80
ExecMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…