2023-01-06 00:39:21 +01:00
|
|
|
package primary
|
2022-11-18 21:25:40 +01:00
|
|
|
|
|
|
|
import (
|
2023-01-06 00:39:21 +01:00
|
|
|
"blackforestbytes.com/simplecloudnotifier/db"
|
2022-12-07 23:32:58 +01:00
|
|
|
"gogs.mikescher.com/BlackForestBytes/goext/sq"
|
2022-11-18 21:25:40 +01:00
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TxContext interface {
|
|
|
|
Deadline() (deadline time.Time, ok bool)
|
|
|
|
Done() <-chan struct{}
|
|
|
|
Err() error
|
|
|
|
Value(key any) any
|
|
|
|
|
2023-01-06 00:39:21 +01:00
|
|
|
GetOrCreateTransaction(db db.DatabaseImpl) (sq.Tx, error)
|
2022-11-18 21:25:40 +01:00
|
|
|
}
|