package hwsauth import ( "git.haelnorr.com/h/golib/jwt" ) // DBTransaction represents a database transaction that can be committed or rolled back. // This is an alias to jwt.DBTransaction. // // Standard library *sql.Tx implements this interface automatically. // ORM transactions (GORM, Bun, etc.) should also implement this interface. type DBTransaction = jwt.DBTransaction // BeginTX is a function type for creating database transactions. // This is an alias to jwt.BeginTX. // // Example: // // beginTx := func(ctx context.Context) (hwsauth.DBTransaction, error) { // return db.BeginTx(ctx, nil) // } type BeginTX = jwt.BeginTX