beam-0.3.0.0: A type-safe SQL mapper for Haskell that doesn't use Template Haskell

Safe HaskellNone
LanguageHaskell2010

Database.Beam.SQL

Contents

Synopsis

SQL pretty printing

ppSQL :: SQLCommand -> (String, [SqlValue]) Source

Convert a SQLCommand into a SQL expression (with placeholders) and literal values to be submitted to the SQL server. Splitting into a SQL expression and literals prevents SQL injection attacks.

Untyped SQL types

SQL queries

data SQLInsert Source

Constructors

SQLInsert 

Fields

iTableName :: Text
 
iValues :: [SqlValue]
 

Instances

data SQLDelete Source

Constructors

SQLDelete 

Instances

data SQLAliased a Source

Constructors

SQLAliased a (Maybe Text) 

Instances

data SQLProjection Source

Constructors

SQLProjStar

The * from SELECT *

SQLProj [SQLAliased SQLExpr]