Restore Exec/One/All
This commit is contained in:
parent
b3ba8462d9
commit
989bece6b3
1 changed files with 4 additions and 4 deletions
|
@ -51,8 +51,8 @@ type join struct {
|
||||||
args []interface{}
|
args []interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExecStatement executes a query that does not need a row returned
|
// ExecQuery executes a query that does not need a row returned
|
||||||
func ExecStatement(q *Query) (sql.Result, error) {
|
func ExecQuery(q *Query) (sql.Result, error) {
|
||||||
qs, args := buildQuery(q)
|
qs, args := buildQuery(q)
|
||||||
if DebugMode {
|
if DebugMode {
|
||||||
fmt.Fprintln(DebugWriter, qs)
|
fmt.Fprintln(DebugWriter, qs)
|
||||||
|
@ -60,8 +60,8 @@ func ExecStatement(q *Query) (sql.Result, error) {
|
||||||
return q.executor.Exec(qs, args...)
|
return q.executor.Exec(qs, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExecQuery executes the query for the One finisher and returns a single row
|
// ExecQueryOne executes the query for the One finisher and returns a row
|
||||||
func ExecQuery(q *Query) *sql.Row {
|
func ExecQueryOne(q *Query) *sql.Row {
|
||||||
qs, args := buildQuery(q)
|
qs, args := buildQuery(q)
|
||||||
if DebugMode {
|
if DebugMode {
|
||||||
fmt.Fprintln(DebugWriter, qs)
|
fmt.Fprintln(DebugWriter, qs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue