haskelldb-0.9: ContentsIndex
Database.HaskellDB.FieldType
Portabilitynon-portable
Stabilityexperimental
Maintainerdp03-7@mdstud.chalmers.se
Description

Defines the types of database columns, and functions for converting these between HSQL and internal formats

$Revision: 1.23 $

Synopsis
type FieldDesc = (FieldType, Bool)
data FieldType
= StringT
| IntT
| IntegerT
| DoubleT
| BoolT
| CalendarTimeT
| BStrT Int
class PrimShow a where
pshow :: a -> String
class SQLShow a where
sshow :: a -> String
mkCalendarTime :: ClockTime -> CalendarTime
Documentation
type FieldDesc = (FieldType, Bool)
The type and nullable flag of a database column
data FieldType
A database column type
Constructors
StringT
IntT
IntegerT
DoubleT
BoolT
CalendarTimeT
BStrT Int
show/hide Instances
class PrimShow a where
defines a primitive show, that gives us the Haskell correct types from a FieldType
Methods
pshow :: a -> String
show/hide Instances
class SQLShow a where
defines a show that is SQL compatible so to speak. Used to convert FieldTypes to their SQL counterpart
Methods
sshow :: a -> String
show/hide Instances
mkCalendarTime :: ClockTime -> CalendarTime
Creates a CalendarTime from a ClockTime This loses the time zone and assumes UTC. :( A probable fix could be to make DbDirect aware of which time zone the server is in and handle it here This is just a function synonym for now
Produced by Haddock version 0.8