14 lines
253 B
Go
14 lines
253 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
// Standard
|
||
|
"database/sql"
|
||
|
)
|
||
|
|
||
|
// Queryable can take both a Db and a transaction
|
||
|
type Queryable interface {
|
||
|
Exec(string, ...any) (sql.Result, error)
|
||
|
Query(string, ...any) (*sql.Rows, error)
|
||
|
QueryRow(string, ...any) *sql.Row
|
||
|
}
|