This commit is contained in:
2022-12-07 23:21:36 +01:00
parent 2c69b33547
commit f3700a772d
7 changed files with 189 additions and 0 deletions

12
sq/queryable.go Normal file
View File

@@ -0,0 +1,12 @@
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)
}