MetaHDBC-0.1.2: Statically checked database access

Database.MetaHDBC.SqlTypeIdExpQ

Synopsis

Documentation

fromSqlTypeId :: SqlTypeId -> ExpQSource

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 -> ExpQSource

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 -> ExpQSource

Like fromSqlTypeId but also considers if the SqlValue is nullable.

toSqlColDesc :: SqlColDesc -> ExpQSource

Like toSqlTypeId but also considers if the SqlValue is nullable.