opaleye-0.4.2.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellSafe
LanguageHaskell98

Opaleye.Internal.HaskellDB.Sql.Generate

Documentation

data SqlGenerator Source

Constructors

SqlGenerator 

Fields

sqlUpdate :: SqlTable -> [PrimExpr] -> Assoc -> SqlUpdate
 
sqlDelete :: SqlTable -> [PrimExpr] -> SqlDelete
 
sqlInsert :: SqlTable -> [Attribute] -> NonEmpty [PrimExpr] -> SqlInsert
 
sqlExpr :: PrimExpr -> SqlExpr
 
sqlLiteral :: Literal -> String
 
sqlQuote :: String -> String

Turn a string into a quoted string. Quote characters and any escaping are handled by this function.