| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Database.MetaHDBC.SqlTypeIdExpQ
- fromSqlTypeId :: SqlTypeId -> ExpQ
- toSqlTypeId :: SqlTypeId -> ExpQ
- fromSqlColDesc :: SqlColDesc -> ExpQ
- toSqlColDesc :: SqlColDesc -> ExpQ
Documentation
fromSqlTypeId :: SqlTypeId -> ExpQ Source
Given a SqlTypeId it returns a function f which transforms a
 SqlValue into another type. The return type of f is dependent upon
 the value of SqlTypeId. The function f is encapsulated in an
 ExpQ. Also see toSqlTypeId.
toSqlTypeId :: SqlTypeId -> ExpQ Source
The opposite of fromSqlTypeId in that it returns a function
 from a type to SqlValue. Similarly the function is returned in a
 ExpQ. See fromSqlTypeId.
fromSqlColDesc :: SqlColDesc -> ExpQ Source
Like fromSqlTypeId but also considers if the SqlValue is nullable.
toSqlColDesc :: SqlColDesc -> ExpQ Source
Like toSqlTypeId but also considers if the SqlValue is nullable.