SimpleCloudNotifier/server/db/context.go
2022-11-18 21:25:40 +01:00

16 lines
232 B
Go

package db
import (
"database/sql"
"time"
)
type TxContext interface {
Deadline() (deadline time.Time, ok bool)
Done() <-chan struct{}
Err() error
Value(key any) any
GetOrCreateTransaction(db *Database) (*sql.Tx, error)
}