haskelldb-2.1.1: A library of combinators for generating and executing SQL statements.

Portabilitynon-portable
Stabilityexperimental
Maintainerhaskelldb-users@lists.sourceforge.net

Database.HaskellDB.DBLayout

Description

Exports every function needed by DBDirect generated files

Synopsis

Documentation

data CalendarTime

CalendarTime is a user-readable and manipulable representation of the internal ClockTime type.

data Expr a Source

Type of normal expressions, contains the untyped PrimExpr.

data Table r Source

Basic tables, contains table name and an association from attributes to attribute names in the real table.

data Attr f a Source

Typed attributes

data RecCons f a b Source

Constructor that adds a field to a record. f is the field tag, a is the field value and b is the rest of the record.

data RecNil Source

The empty record.

class FieldTag f whereSource

Class for field labels.

Methods

fieldName :: f -> StringSource

Gets the name of the label.

hdbMakeEntrySource

Arguments

:: FieldTag f 
=> f

Field tag

-> Record (RecCons f (Expr a) RecNil) 

Constructs a table entry from a field tag

mkAttrSource

Arguments

:: FieldTag f 
=> f

Field tag

-> Attr f a 

Make an Attr for a field.

(#)Source

Arguments

:: Record (RecCons f a RecNil)

Field to add

-> (b -> c)

Rest of record

-> b -> RecCons f a c

New record

Adds the field from a one-field record to another record.

emptyTable :: TableName -> Table (Record RecNil)Source

For queries against fake tables, such as 'information_schema.information_schema_catalog_name'. Useful for constructing queries that contain constant data (and do not select from columns) but need a table to select from.