haskelldb-2.0.1: A library of combinators for generating and executing SQL statements.

Portabilitynon-portable
Stabilityexperimental
Maintainerhaskelldb-users@lists.sourceforge.net

Database.HaskellDB.BoundedString

Description

BoundedString represents the sql types; CHARACTER and CHARACTER VARYING both defined in SQL 1992. BoundedString supports sizes in the range [0,255] and 65535. Greater sizes and the sql type SQL_TEXT (SQL 1992) will might be supported in the future.

The use of BoundedString together with HaskellDB enables feedback when the length of a string exceeds the bound of a certain database field. BoundedString also provides a layer of type safety against loss of data due to sql string truncation when extracting and re-insert data into fields with smaller bound.

Documentation