updown/repository/executor.go

11 lines
314 B
Go

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
}