mysql-0.2.1: A low-level MySQL client library.
Copyright(c) 2011 MailRank Inc.
LicenseBSD3
MaintainerPaul Rouse <pyr@doynton.org>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Database.MySQL.Base.Types

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

Instances details
Enum Type Source # 
Instance details

Defined in Database.MySQL.Base.Types

Methods

succ :: Type -> Type #

pred :: Type -> Type #

toEnum :: Int -> Type #

fromEnum :: Type -> Int #

enumFrom :: Type -> [Type] #

enumFromThen :: Type -> Type -> [Type] #

enumFromTo :: Type -> Type -> [Type] #

enumFromThenTo :: Type -> Type -> Type -> [Type] #

Eq Type Source # 
Instance details

Defined in Database.MySQL.Base.Types

Methods

(==) :: Type -> Type -> Bool #

(/=) :: Type -> Type -> Bool #

Show Type Source # 
Instance details

Defined in Database.MySQL.Base.Types

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

data Field Source #

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

Constructors

Field 

Fields

Instances

Instances details
Eq Field Source # 
Instance details

Defined in Database.MySQL.Base.Types

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

Show Field Source # 
Instance details

Defined in Database.MySQL.Base.Types

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

Storable Field Source # 
Instance details

Defined in Database.MySQL.Base.Types

Methods

sizeOf :: Field -> Int #

alignment :: Field -> Int #

peekElemOff :: Ptr Field -> Int -> IO Field #

pokeElemOff :: Ptr Field -> Int -> Field -> IO () #

peekByteOff :: Ptr b -> Int -> IO Field #

pokeByteOff :: Ptr b -> Int -> Field -> IO () #

peek :: Ptr Field -> IO Field #

poke :: Ptr Field -> Field -> IO () #

Low-level types

Field flags

Connect flags