Add executor interface
parent
7ce90c3673
commit
19b591e48b
|
@ -0,0 +1,10 @@
|
|||
package repository
|
||||
|
||||
import "database/sql"
|
||||
|
||||
// executor allows for the execution of various database functions
|
||||
type executor interface {
|
||||
Exec(query string, args ...interface{}) (sql.Result, error)
|
||||
Query(query string, args ...interface{}) (*sql.Rows, error)
|
||||
QueryRow(query string, args ...interface{}) *sql.Row
|
||||
}
|
Loading…
Reference in New Issue