|
| Database.HaskellDB.FieldType | | Portability | non-portable | | Stability | experimental | | Maintainer | dp03-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 |
|
|
|
| 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 | |
| Instances | |
|
|
| class PrimShow a where |
| defines a primitive show, that gives us the Haskell correct types from a
FieldType
| | | Methods | | | Instances | |
|
|
| class SQLShow a where |
| defines a show that is SQL compatible so to speak. Used to convert
FieldTypes to their SQL counterpart
| | | Methods | | | 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 |