upgrade to go 1.25 & port helpers
Removed ExprID and ExprEnum in favour of generics.
This commit is contained in:
17
dbx.go
17
dbx.go
@@ -52,6 +52,20 @@ type ExecutableTx interface {
|
||||
Begin() (*sql.Tx, error)
|
||||
}
|
||||
|
||||
// QueryExec interface is an SQL driver object that can execute SQL statements for Jet
|
||||
// and query results.
|
||||
type QueryExec interface {
|
||||
Queryable
|
||||
Executable
|
||||
}
|
||||
|
||||
// QueryExecTx interface is an SQL driver object that can execute SQL statements for
|
||||
// Jet, query results, and begin a transaction.
|
||||
type QueryExecTx interface {
|
||||
Queryable
|
||||
ExecutableTx
|
||||
}
|
||||
|
||||
// Statement is a common Jet statement for all SQL operations.
|
||||
type Statement interface {
|
||||
Query(db qrm.Queryable, destination any) error
|
||||
@@ -79,6 +93,9 @@ var (
|
||||
// ErrNoRows is returned when a query returns no rows.
|
||||
ErrNoRows = qrm.ErrNoRows
|
||||
|
||||
// ErrValueIsZero is returned when an expected value is missing.
|
||||
ErrValueIsZero = errors.New("value is zero-value for type")
|
||||
|
||||
state = dbState{}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user