MCPcopy
hub / github.com/dosco/graphjin / Exec

Method Exec

wasm/postgres.go:96–104  ·  view source on GitHub ↗
(args []driver.Value)

Source from the content-addressed store, hash-verified

94}
95
96func (s *PgStmt) Exec(args []driver.Value) (driver.Result, error) {
97 res := &Result{lastInsertId: -1}
98 v, err := s.queryExec(args)
99 if err != nil {
100 return res, err
101 }
102 res.rowsAffected = int64(v.Get("rowCount").Int())
103 return res, nil
104}
105
106func (s *PgStmt) Query(args []driver.Value) (driver.Rows, error) {
107 v, err := s.queryExec(args)

Callers

nothing calls this directly

Calls 2

queryExecMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected