HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleselda-0.5.2.1Haskell2010

Database.Selda.Debug

Functionality for inspecting and debugging Selda queries.

  • 1 type
  • 6 values
  • Packageselda-0.5.2.1
  • Exports7
  • LanguageHaskell2010
  • LicenceMIT
  • SourceDebug.hs
datadata OnError
#
Instances3Eq, Ord, Show
  • Eq OnErrorDefined in selda-0.5.2.1 · Database.Selda.Table.Compile
  • Ord OnErrorDefined in selda-0.5.2.1 · Database.Selda.Table.Compile
  • Show OnErrorDefined in selda-0.5.2.1 · Database.Selda.Table.Compile
valuedefPPConfig :: PPConfig
#

Default settings for pretty-printing. Geared towards SQLite.

The default definition of ppTypePK is 'defType, so that you don’t have to do anything special if you don’t use special types for primary keys.

valuecompile :: Result a => Query s a -> (Text, [Param])
#

Compile a query into a parameterised SQL statement.

The types given are tailored for SQLite. To translate SQLite types into whichever types are used by your backend, use compileWith.

valuecompileInsert
  1. :: Relational a
  2. => PPConfig
  3. -> Table a
  4. -> [a]
  5. -> [(Text, [Param])]
#

Compile an INSERT query, given the keyword representing default values in the target SQL dialect, a table and a list of items corresponding to the table.