mysql-0.1.1.7: A low-level MySQL client library.

Portabilityportable
Stabilityexperimental
MaintainerBryan O'Sullivan <bos@serpentine.com>
Safe HaskellNone

Database.MySQL.Base.Types

Contents

Description

Types for working with the direct bindings to the C mysqlclient API.

Synopsis

Types

High-level types

data Type Source

Column types supported by MySQL.

Instances

Enum Type 
Eq Type 
Show Type 
Typeable Type 

type Seconds = WordSource

data Protocol Source

Constructors

TCP 
Socket 
Pipe 
Memory 

Instances

Enum Protocol 
Eq Protocol 
Read Protocol 
Show Protocol 
Typeable Protocol 

data Field Source

A description of a field (column) of a table.

Constructors

Field 

Fields

fieldName :: ByteString

Name of column.

fieldOrigName :: ByteString

Original column name, if an alias.

fieldTable :: ByteString

Table of column, if column was a field.

fieldOrigTable :: ByteString

Original table name, if table was an alias.

fieldDB :: ByteString

Database for table.

fieldCatalog :: ByteString

Catalog for table.

fieldDefault :: Maybe ByteString

Default value.

fieldLength :: Word

Width of column (create length).

fieldMaxLength :: Word

Maximum width for selected set.

fieldFlags :: FieldFlags

Div flags.

fieldDecimals :: Word

Number of decimals in field.

fieldCharSet :: Word

Character set number.

fieldType :: Type
 

Instances

Eq Field 
Show Field 
Typeable Field 
Storable Field 

data FieldFlags Source

Instances

Eq FieldFlags 
Show FieldFlags 
Typeable FieldFlags 
Monoid FieldFlags 

Low-level types

type MYSQL_ROW = Ptr (Ptr CChar)Source

type MyBool = CCharSource

Field flags

Connect flags