data-basic-0.3.0.0: A database library with a focus on ease of use, type safety and useful error messages

Safe HaskellNone
LanguageHaskell2010

Internal.Data.Basic.Compiler

Documentation

literalCollectionToSql :: LiteralCollection collection a => collection -> [SqlValueExp] Source #

compileTable :: forall name proxy. KnownSymbol name => proxy (name :: Symbol) -> SqlExp Source #

updatedExpToSql :: forall fields table. UpdateExp fields table -> ([Text], [SqlValueExp]) Source #

updateToSql :: forall table fields. (Var Updating table -> UpdateExp fields table) -> ([Text], [SqlValueExp]) Source #

orderingToSql :: forall tables ord. (Sortable ord, TableSetVars Sorting tables) => (Variables Sorting tables -> ord) -> [(SqlValueExp, SortDirection)] Source #

mappingToSql :: forall tables map. (Mappable map, TableSetVars Mapping tables) => (Variables Mapping tables -> map) -> [SqlValueExp] Source #

mapToSql :: Mappable map => map -> [SqlValueExp] Source #

grouppingToSql :: forall tables group. (Groupable group, TableSetVars Grouping tables) => (Variables Grouping tables -> group) -> [SqlValueExp] Source #

groupStatementToSql :: forall tables group. GroupStatement group tables -> SqlExp Source #

foldingToSql :: forall tables aggr. (Aggregatable aggr, TableSetVars Folding tables) => (Variables Folding tables -> aggr) -> [SqlValueExp] Source #