Add support for INSERT statements.
This commit is contained in:
parent
d84deb8745
commit
599a8c537a
15 changed files with 586 additions and 277 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"github.com/serenize/snaker"
|
||||
"github.com/sub0Zero/go-sqlbuilder/types"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
|
|
@ -13,7 +14,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func Execute(db *sql.DB, query string, destinationPtr interface{}) error {
|
||||
func Execute(db types.Db, query string, destinationPtr interface{}) error {
|
||||
if db == nil {
|
||||
return errors.New("db is nil")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue