opaleye-0.3.1: An SQL-generating DSL targeting PostgreSQL

Safe HaskellSafe-Inferred
LanguageHaskell98

Opaleye.Internal.HaskellDB.Sql.Default

Synopsis

Documentation

defaultSqlUpdate Source

Arguments

:: SqlGenerator 
-> TableName

Name of the table to update.

-> [PrimExpr]

Conditions which must all be true for a row to be updated.

-> Assoc

Update the data with this.

-> SqlUpdate 

defaultSqlInsert Source

Arguments

:: SqlGenerator 
-> TableName

Name of the table

-> Assoc

What to insert.

-> SqlInsert 

defaultSqlDelete Source

Arguments

:: SqlGenerator 
-> TableName

Name of the table

-> [PrimExpr]

Criteria which must all be true for a row to be deleted.

-> SqlDelete 

quote :: String -> String Source

Quote a string and escape characters that need escaping We use Postgres "escape strings", i.e. strings prefixed with E, to ensure that escaping with backslash is valid.

escape :: Char -> String Source

Escape characters that need escaping