21
0
Fork 0
goext/sq/queryable.go

14 lines
279 B
Go

package sq
import (
"context"
"database/sql"
"github.com/jmoiron/sqlx"
)
type Queryable interface {
Exec(ctx context.Context, sql string, prep PP) (sql.Result, error)
Query(ctx context.Context, sql string, prep PP) (*sqlx.Rows, error)
ListConverter() []DBTypeConverter
}