5 // SQLCommon is the minimal database connection functionality gorm requires. Implemented by *sql.DB.
6 type SQLCommon interface {
7 Exec(query string, args ...interface{}) (sql.Result, error)
8 Prepare(query string) (*sql.Stmt, error)
9 Query(query string, args ...interface{}) (*sql.Rows, error)
10 QueryRow(query string, args ...interface{}) *sql.Row
13 type sqlDb interface {
14 Begin() (*sql.Tx, error)
17 type sqlTx interface {