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

Copyright(c) 2011 MailRank Inc.
LicenseBSD3
MaintainerPaul Rouse <pyr@doynton.org>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

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 #

Column types supported by MySQL.

Instances

Enum Type # 

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 # 

Methods

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

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

Show Type # 

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

type Seconds = Word #

data Field #

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

Constructors

Field 

Fields

Instances

Eq Field # 

Methods

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

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

Show Field # 

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

Storable Field # 

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

data MYSQL #

type MyBool = CChar #

Field flags

Connect flags