orville-postgresql-1.0.0.0: A Haskell library for PostgreSQL
CopyrightFlipstone Technology Partners 2023
LicenseMIT
StabilityStable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Orville.PostgreSQL.Expr.Transaction

Description

Since: 1.0.0.0

Synopsis

Documentation

data BeginTransactionExpr Source #

Type to represent the name of a begin transaction statement. E.G.

BEGIN TRANSACTION

BeginTransactionExpr provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

beginTransaction :: Maybe TransactionMode -> BeginTransactionExpr Source #

Constructs a BeginTransactionExpr that will begin a transaction using the specified mode, if any.

Since: 1.0.0.0

data TransactionMode Source #

Type to represent the transaction mode. E.G.

ISOLATION LEVEL SERIALIZABLE

TransactionMode provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

readWrite :: TransactionMode Source #

The READ WRITE transaction mode.

Since: 1.0.0.0

readOnly :: TransactionMode Source #

The READ ONLY transaction mode.

Since: 1.0.0.0

deferrable :: TransactionMode Source #

The DEFERRABLE transaction mode.

Since: 1.0.0.0

notDeferrable :: TransactionMode Source #

The NOT DEFERRABLE transaction mode.

Since: 1.0.0.0

isolationLevel :: IsolationLevel -> TransactionMode Source #

An ISOLATION LEVEL transaction mode with the given IsolationLevel.

Since: 1.0.0.0

data IsolationLevel Source #

Type to represent the transaction isolation level. E.G.

SERIALIZABLE

IsolationLevel provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

serializable :: IsolationLevel Source #

The SERIALIZABLE isolation level.

Since: 1.0.0.0

repeatableRead :: IsolationLevel Source #

The REPEATABLE READ isolation level.

Since: 1.0.0.0

readCommitted :: IsolationLevel Source #

The READ COMMITTED isolation level.

Since: 1.0.0.0

readUncommitted :: IsolationLevel Source #

The READ UNCOMMITTED isolation level.

Since: 1.0.0.0

data CommitExpr Source #

Type to represent the transaction commit statement. E.G.

COMMIT

CommitExpr provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

commit :: CommitExpr Source #

A COMMIT transaction statement.

Since: 1.0.0.0

data RollbackExpr Source #

Type to represent the transaction rollback statement. E.G.

ROLLBACK

RollbackExpr provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

rollback :: RollbackExpr Source #

A ROLLBACK transaction statement.

Since: 1.0.0.0

rollbackTo :: SavepointName -> RollbackExpr Source #

A ROLLBACK TO transaction statement that will rollback to the specified savepoint.

Since: 1.0.0.0

data SavepointExpr Source #

Type to represent the transaction savepoint statement. E.G.

SAVEPOINT foo

SavepointExpr provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

savepoint :: SavepointName -> SavepointExpr Source #

A SAVEPOINT statement that will create a savepoint with the given name.

Since: 1.0.0.0

data ReleaseSavepointExpr Source #

Type to represent the transaction release savepoint statement. E.G.

RELEASE SAVEPOINT foo

ReleaseSavepointExpr provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

releaseSavepoint :: SavepointName -> ReleaseSavepointExpr Source #

A RELEASE SAVEPOINT statement that will release the specified savepoint.

Since: 1.0.0.0