sqlite-0.5.5: Haskell binding to sqlite3

Copyright(c) Galois, Inc. 2007
LicenseBSD3
MaintainerDon Stewart <dons@galois.com>
Stabilityprovisional
PortabilityBasic embedding of SQL types in Haskell.
Safe HaskellNone
LanguageHaskell98

Database.SQL.Types

Description

Note: the quary part of this modules was imported (with modifications) from the lowest layer of abstraction of HaskellDB.

Synopsis

Documentation

data SQLOrder Source #

Constructors

SQLAsc 
SQLDesc 

data SQLSelect Source #

Data type for SQL SELECT statements.

Constructors

SQLSelect 

Fields

SQLBin OpName SQLSelect SQLSelect

UNION, etc

data Join Source #

Join with another table.

data TableSource Source #

Use empty string for no alias.

data SQLUpdate Source #

Data type for SQL UPDATE statements.

data SQLDelete Source #

Data type for SQL DELETE statements.

Constructors

SQLDelete TableName [SQLExpr] 

data SQLInsert Source #

Data type for SQL INSERT statements.

data SQLCreate a Source #

Data type for SQL CREATE statements.

Constructors

SQLCreateDB DatabaseName

Create a database

SQLCreateTable (Table a)

Create a table

Instances

data SQLDrop Source #

Data type representing the SQL DROP statement.

Constructors

SQLDropDB DatabaseName

Delete a database

SQLDropTable TableName

Delete a table named SQLTable

Instances

data Column a Source #

We parameterize over column type, since SQL engines do tend to provide their own set of supported datatypes (which may or may not map onto SQL99's set of types.)

Constructors

Column 

Fields

data SQLType Source #

MySQL slanted, but also SQLite friendly if you don't get too fancy..

Instances

data IntType Source #

Constructors

TINY 
SMALL 
MEDIUM 
NORMAL 
BIG