Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Database.Persist.Sql.Lifted.Query.Locking
Synopsis
- locking :: LockingKind -> SqlQuery ()
- data LockingKind
Documentation
locking :: LockingKind -> SqlQuery () #
Add a locking clause to the query. Please read
LockingKind
documentation and your RDBMS manual.
Unsafe since not all locking clauses are implemented for every RDBMS
If multiple calls to locking
are made on the same query,
the last one is used.
Since: esqueleto-2.2.7
data LockingKind #
Different kinds of locking clauses supported by locking
.
Note that each RDBMS has different locking support. The
constructors of this datatype specify only the syntax of the
locking mechanism, not its semantics. For example, even
though both MySQL and PostgreSQL support ForUpdate
, there
are no guarantees that they will behave the same.
Since: esqueleto-2.2.7
Constructors
ForUpdate |
Since: esqueleto-2.2.7 |
ForUpdateSkipLocked |
Since: esqueleto-2.2.7 |
ForShare |
Since: esqueleto-2.2.7 |
LockInShareMode |
Since: esqueleto-2.2.7 |