HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Moduleopaleye-0.10.8.0Haskell2010

Opaleye.Internal.Locking

Support for Postgres SELECT locking clauses.

This functionality is new. If you use it then please open an issue on GitHub and let us know how it went, whether that is well or badly.

Not all Postgres locking clauses are supported. If you need another form of locking clause then please open an issue on GitHub.

  • 1 value
  • Packageopaleye-0.10.8.0
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLocking.hs
valueforUpdate :: Select a -> Select a
#

Adds a FOR UPDATE clause to the Select.

Postgres has strong restrictions regarding the SELECT clauses to which a FOR UPDATE can be added. Opaleye makes no attempt to enforce those restrictions through its type system so it's very easy to create queries that fail at run time using this operation.