SimpleCloudNotifier/scnserver/db/context.go

16 lines
265 B
Go
Raw Permalink Normal View History

package db
2022-11-18 21:25:40 +01:00
import (
"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
GetOrCreateTransaction(db DatabaseImpl) (sq.Tx, error)
2022-11-18 21:25:40 +01:00
}