beam-core-0.6.0.0: Type-safe, feature-complete SQL query and manipulation interface for Haskell

Safe HaskellNone
LanguageHaskell2010

Database.Beam.Backend.SQL.BeamExtensions

Synopsis

Documentation

class MonadBeam syntax be handle m => MonadBeamInsertReturning syntax be handle m | m -> syntax be handle, be -> m, handle -> m where Source #

MonadBeams that support returning the results of an insert statement. Useful for discovering the real value of a defaulted value.

Unfortunately, SQL has no standard way of doing this, so it is provided as a beam extension.

Minimal complete definition

runInsertReturningList

class MonadBeam syntax be handle m => MonadBeamUpdateReturning syntax be handle m | m -> syntax be handle, be -> m, handle -> m where Source #

Minimal complete definition

runUpdateReturningList