Move to own sql abstraction on top of jmoiron/sqlx

This commit is contained in:
2022-12-07 22:11:44 +01:00
parent d27e3d9a91
commit 8db0fa37db
34 changed files with 584 additions and 265 deletions

View File

@@ -1,7 +1,7 @@
package db
import (
"database/sql"
"blackforestbytes.com/simplecloudnotifier/sq"
"time"
)
@@ -11,5 +11,5 @@ type TxContext interface {
Err() error
Value(key any) any
GetOrCreateTransaction(db *Database) (*sql.Tx, error)
GetOrCreateTransaction(db *Database) (sq.Tx, error)
}