SimpleCloudNotifier/scnserver/db/context.go

16 lines
265 B
Go

package db
import (
"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 DatabaseImpl) (sq.Tx, error)
}