opaleye-0.7.3.0: An SQL-generating DSL targeting PostgreSQL
Safe HaskellSafe-Inferred
LanguageHaskell2010

Opaleye.Internal.HaskellDB.Sql.Default

Synopsis

Documentation

defaultSqlUpdate Source #

Arguments

:: SqlGenerator 
-> SqlTable

Table to update

-> [PrimExpr]

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

-> Assoc

Update the data with this.

-> SqlUpdate 

defaultSqlDelete Source #

Arguments

:: SqlGenerator 
-> SqlTable 
-> [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

binQuote :: ByteString -> String Source #

Quote binary literals using Postgresql's hex format.