migrate to multiple sqlite db files ( primary + requests + logs )
This commit is contained in:
16
scnserver/db/impl/primary/context.go
Normal file
16
scnserver/db/impl/primary/context.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package primary
|
||||
|
||||
import (
|
||||
"blackforestbytes.com/simplecloudnotifier/db"
|
||||
"gogs.mikescher.com/BlackForestBytes/goext/sq"
|
||||
"time"
|
||||
)
|
||||
|
||||
type TxContext interface {
|
||||
Deadline() (deadline time.Time, ok bool)
|
||||
Done() <-chan struct{}
|
||||
Err() error
|
||||
Value(key any) any
|
||||
|
||||
GetOrCreateTransaction(db db.DatabaseImpl) (sq.Tx, error)
|
||||
}
|
||||
Reference in New Issue
Block a user