Something went wrong. Try again.
forked from charmbracelet/soft-serve
Something went wrong. Try again.
1234567891011121314151617181920212223242526package db
import ( "context" "database/sql"
"github.com/jmoiron/sqlx")
// Handler is a database handler.type Handler interface { Rebind(string) string
Select(interface{}, string, ...interface{}) error Get(interface{}, string, ...interface{}) error Queryx(string, ...interface{}) (*sqlx.Rows, error) QueryRowx(string, ...interface{}) *sqlx.Row Exec(string, ...interface{}) (sql.Result, error)
SelectContext(context.Context, interface{}, string, ...interface{}) error GetContext(context.Context, interface{}, string, ...interface{}) error QueryxContext(context.Context, string, ...interface{}) (*sqlx.Rows, error) QueryRowxContext(context.Context, string, ...interface{}) *sqlx.Row ExecContext(context.Context, string, ...interface{}) (sql.Result, error)}