Transaction

skunk.Transaction
See theTransaction companion object
trait Transaction[F[_]]

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 Object
trait Matchable
class Any
Self type

Members list

Concise view

Transaction Control

def commit(implicit o: Origin): F[Completion]

Terminate the transaction by committing early. This is normally not necessary because a transaction will be committed automatically if the block exits successfully.

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
def rollback(savepoint: Savepoint)(implicit o: Origin): F[Completion]

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
def rollback(implicit o: Origin): F[Completion]

Terminate the transaction by rolling back. This is normally not necessary because a transaction will be rolled back automatically when the block exits abnormally.

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
def savepoint(implicit o: Origin): F[Savepoint]

Create a Savepoint, to which you can later roll back.

Create a Savepoint, to which you can later roll back.

Attributes

Source:
Transaction.scala

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.

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

def mapK[G[_]](fk: FunctionK[F, G]): Transaction[G]

Transform this Transaction by a given FunctionK.

Transform this Transaction by a given FunctionK.

Attributes

Source:
Transaction.scala

Type members

Types

Existential type for savepoints within this transaction block.

Existential type for savepoints within this transaction block.

Attributes

Source:
Transaction.scala