upgrade to go 1.25 & port helpers

Removed ExprID and ExprEnum in favour of generics.
This commit is contained in:
Elijah Duffy
2026-01-28 11:18:11 -08:00
parent 78de94c919
commit 6ab100cc46
6 changed files with 383 additions and 12 deletions

17
dbx.go
View File

@@ -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{}
)