2023-07-27 17:44:06 +02:00
|
|
|
package db
|
2022-11-18 21:25:40 +01:00
|
|
|
|
|
|
|
import (
|
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-07-27 17:44:06 +02:00
|
|
|
GetOrCreateTransaction(db DatabaseImpl) (sq.Tx, error)
|
2022-11-18 21:25:40 +01:00
|
|
|
}
|