pg-store-0.0.1: Dead simple storage interface to PostgreSQL

Copyright(c) Ole Krüger 2015-2016
LicenseBSD3
MaintainerOle Krüger <ole@vprsm.de>
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Store.Columns

Contents

Description

 

Synopsis

data Value Source

Query parameter or value of a column - see pack on how to generate Values manually but conveniently.

Constructors

Value 

Fields

valueType :: Oid

Type object identifier

valueData :: ByteString

Data value

valueFormat :: Format

Data format

NullValue 

data ColumnDescription Source

Description of a column

Constructors

ColumnDescription 

Fields

columnTypeName :: String

Type name (e.g. bool, integer)

columnTypeNull :: Bool

Can the column be null?

makeColumnDescription :: ColumnDescription -> String Source

Generate column description in SQL. Think CREATE TABLE.

sanitizeName :: Name -> String Source

Generate the sanitized representation of a name.

sanitizeName' :: Name -> String Source

Similiar to "sanitizeName" but encloses the name in quotes.

identField :: Name -> String Source

Generate the name for the identifying field.

identField' :: Name -> String Source

Similiar to "identField" but encloses the name in quotes.