module Opaleye.Internal.HaskellDB.Sql.Generate (SqlGenerator(..)) where
import Opaleye.Internal.HaskellDB.PrimQuery
import Opaleye.Internal.HaskellDB.Sql
import qualified Data.List.NonEmpty as NEL
data SqlGenerator = SqlGenerator
{
SqlGenerator -> SqlTable -> [PrimExpr] -> Assoc -> SqlUpdate
sqlUpdate :: SqlTable -> [PrimExpr] -> Assoc -> SqlUpdate,
SqlGenerator -> SqlTable -> [PrimExpr] -> SqlDelete
sqlDelete :: SqlTable -> [PrimExpr] -> SqlDelete,
SqlGenerator
-> SqlTable
-> [Attribute]
-> NonEmpty [PrimExpr]
-> Maybe OnConflict
-> SqlInsert
sqlInsert :: SqlTable -> [Attribute] -> NEL.NonEmpty [PrimExpr] -> Maybe OnConflict -> SqlInsert,
SqlGenerator -> PrimExpr -> SqlExpr
sqlExpr :: PrimExpr -> SqlExpr,
SqlGenerator -> Literal -> Attribute
sqlLiteral :: Literal -> String,
SqlGenerator -> Attribute -> Attribute
sqlQuote :: String -> String
}