Control methods for use within a transaction
block. An instance is provided when you call Session.transaction(...).use
.
Attributes
- See also
-
Session#transaction for information on default commit/rollback behavior
- Companion
- object
- Source
- Transaction.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Transaction[F]
Members list
Grouped members
Transaction Control
Terminate the transaction by committing early.
Terminate the transaction by committing early. This is normally not necessary because a transaction will be committed automatically if the block exits successfully.
Attributes
- See also
-
Session#transaction for information on default commit/rollback behavior
- Source
- Transaction.scala
Roll back to the specified Savepoint
, leaving the transaction active at that point.
Roll back to the specified Savepoint
, leaving the transaction active at that point.
Attributes
- Source
- Transaction.scala
Terminate the transaction by rolling back.
Terminate the transaction by rolling back. This is normally not necessary because a transaction will be rolled back automatically when the block exits abnormally.
Attributes
- See also
-
Session#transaction for information on default commit/rollback behavior
- Source
- Transaction.scala
Create a Savepoint
, to which you can later roll back.
Current transaction status.
Current transaction status. It is not usually necessary to check because transactions will be committed or rolled back automatically, but if you are committing manually and your logic is sufficiently complex it may be helpful.
Attributes
- Source
- Transaction.scala
Transformations
Transform this Transaction
by a given FunctionK
.
Type members
Types
Existential type for savepoints within this transaction block.