/usr/share/doc/libghc-hdbc-doc/html/Database-HDBC-SqlValue.html is in libghc-hdbc-doc 2.4.0.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Database.HDBC.SqlValue</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Database-HDBC-SqlValue.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-HDBC-SqlValue.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HDBC-2.4.0.1: Haskell Database Connectivity</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Database.HDBC.SqlValue</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">SQL value marshalling</a></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:SqlValue">SqlValue</a><ul class="subs"><li>= <a href="#v:SqlString">SqlString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:SqlByteString">SqlByteString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li>| <a href="#v:SqlWord32">SqlWord32</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word32">Word32</a></li><li>| <a href="#v:SqlWord64">SqlWord64</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word64">Word64</a></li><li>| <a href="#v:SqlInt32">SqlInt32</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></li><li>| <a href="#v:SqlInt64">SqlInt64</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></li><li>| <a href="#v:SqlInteger">SqlInteger</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li>| <a href="#v:SqlChar">SqlChar</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Char.html#t:Char">Char</a></li><li>| <a href="#v:SqlBool">SqlBool</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li>| <a href="#v:SqlDouble">SqlDouble</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li>| <a href="#v:SqlRational">SqlRational</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Rational">Rational</a></li><li>| <a href="#v:SqlLocalDate">SqlLocalDate</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Calendar.html#t:Day">Day</a></li><li>| <a href="#v:SqlLocalTimeOfDay">SqlLocalTimeOfDay</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a></li><li>| <a href="#v:SqlZonedLocalTimeOfDay">SqlZonedLocalTimeOfDay</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a></li><li>| <a href="#v:SqlLocalTime">SqlLocalTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></li><li>| <a href="#v:SqlZonedTime">SqlZonedTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a></li><li>| <a href="#v:SqlUTCTime">SqlUTCTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li><li>| <a href="#v:SqlDiffTime">SqlDiffTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></li><li>| <a href="#v:SqlPOSIXTime">SqlPOSIXTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></li><li>| <a href="#v:SqlEpochTime">SqlEpochTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li>| <a href="#v:SqlTimeDiff">SqlTimeDiff</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li>| <a href="#v:SqlNull">SqlNull</a></li></ul></li><li class="src short"><a href="#v:safeFromSql">safeFromSql</a> :: <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> -> <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:ConvertResult">ConvertResult</a> a</li><li class="src short"><a href="#v:toSql">toSql</a> :: <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> a <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> => a -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></li><li class="src short"><a href="#v:fromSql">fromSql</a> :: <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> -> a</li><li class="src short"><a href="#v:nToSql">nToSql</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integral">Integral</a> a => a -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></li><li class="src short"><a href="#v:iToSql">iToSql</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></li><li class="src short"><a href="#v:posixToSql">posixToSql</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a> -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></li></ul></div><div id="interface"><h1 id="g:1">SQL value marshalling</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SqlValue" class="def">SqlValue</a> <a href="src/Database-HDBC-SqlValue.html#SqlValue" class="link">Source</a></p><div class="doc"><p><code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code> is the main type for expressing Haskell values to SQL databases.</p><p><em>INTRODUCTION TO SQLVALUE</em></p><p>This type is used to marshall Haskell data to and from database APIs.
HDBC driver interfaces will do their best to use the most accurate and
efficient way to send a particular value to the database server.</p><p>Values read back from the server are constructed with the most appropriate <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>
constructor. <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> or <code><a href="Database-HDBC-SqlValue.html#v:safeFromSql">safeFromSql</a></code>
can then be used to convert them into whatever type
is needed locally in Haskell.</p><p>Most people will use <code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code> and <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> instead of manipulating
<code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>s directly.</p><p><em>EASY CONVERSIONS BETWEEN HASKELL TYPES</em></p><p>Conversions are powerful; for instance, you can call <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> on a SqlInt32
and get a String or a Double out of it. This class attempts to Do
The Right Thing whenever possible, and will raise an error when asked to
do something incorrect. In particular, when converting to any type
except a Maybe, <code><a href="Database-HDBC-SqlValue.html#v:SqlNull">SqlNull</a></code> as the input will cause an error to be raised.</p><p>Conversions are implemented in terms of the <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible.html">Data.Convertible</a> module, part of the
convertible package. You can refer to its documentation, and import that module,
if you wish to parse the Left result from <code><a href="Database-HDBC-SqlValue.html#v:safeFromSql">safeFromSql</a></code> yourself, or write your
own conversion instances.</p><p>Here are some notes about conversion:</p><ul><li>Fractions of a second are not preserved on time values</li><li>There is no <code>safeToSql</code> because <code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code> never fails.</li></ul><p>See also <code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code>, <code><a href="Database-HDBC-SqlValue.html#v:safeFromSql">safeFromSql</a></code>, <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code>, <code><a href="Database-HDBC-SqlValue.html#v:nToSql">nToSql</a></code>, <code><a href="Database-HDBC-SqlValue.html#v:iToSql">iToSql</a></code>, <code><a href="Database-HDBC-SqlValue.html#v:posixToSql">posixToSql</a></code>.</p><p><em>ERROR CONDITIONS</em></p><p>There may sometimes be an error during conversion. For instance, if you have a
<code><a href="Database-HDBC-SqlValue.html#v:SqlString">SqlString</a></code> and are attempting to convert it to an Integer, but it doesn't parse as
an Integer, you will get an error. This will be indicated as an exception if using
<code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code>, or a Left result if using <code><a href="Database-HDBC-SqlValue.html#v:safeFromSql">safeFromSql</a></code>.</p><p><em>SPECIAL NOTE ON POSIXTIME</em></p><p>Note that a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></code> or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></code> is converted to <code><a href="Database-HDBC-SqlValue.html#v:SqlDiffTime">SqlDiffTime</a></code> by
<code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code>. HDBC cannot differentiate between <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></code> and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></code>
since they are the same underlying type. You must construct <code><a href="Database-HDBC-SqlValue.html#v:SqlPOSIXTime">SqlPOSIXTime</a></code>
manually or via <code><a href="Database-HDBC-SqlValue.html#v:posixToSql">posixToSql</a></code>, or use <code><a href="Database-HDBC-SqlValue.html#v:SqlUTCTime">SqlUTCTime</a></code>.</p><p><em>DETAILS ON SQL TYPES</em></p><p>HDBC database backends are expected to marshal date and time data back and
forth using the appropriate representation for the underlying database engine.
Databases such as PostgreSQL with builtin date and time types should see automatic
conversion between these Haskell types to database types. Other databases will be
presented with an integer or a string. Care should be taken to use the same type on
the Haskell side as you use on the database side. For instance, if your database
type lacks timezone information, you ought not to use ZonedTime, but
instead LocalTime or UTCTime. Database type systems are not always as rich
as Haskell. For instance, for data stored in a TIMESTAMP
WITHOUT TIME ZONE column, HDBC may not be able to tell if it is intended
as UTCTime or LocalTime data, and will happily convert it to both,
upon your request. It is
your responsibility to ensure that you treat timezone issues with due care.</p><p>This behavior also exists for other types. For instance, many databases do not
have a Rational type, so they will just use the show function and
store a Rational as a string.</p><p>The conversion between Haskell types and database types is complex,
and generic code in HDBC or its backends cannot possibly accomodate
every possible situation. In some cases, you may be best served by converting your
Haskell type to a String, and passing that to the database.</p><p><em>UNICODE AND BYTESTRINGS</em></p><p>Beginning with HDBC v2.0, interactions with a database are presumed to occur in UTF-8.</p><p>To accomplish this, whenever a ByteString must be converted to or from a String,
the ByteString is assumed to be in UTF-8 encoding, and will be decoded or encoded
as appropriate. Database drivers will generally present text or string data they have
received from the database as a SqlValue holding a ByteString, which <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> will
automatically convert to a String, and thus automatically decode UTF-8, when
you need it. In the other direction, database drivers will generally convert
a <code><a href="Database-HDBC-SqlValue.html#v:SqlString">SqlString</a></code> to a ByteString in UTF-8 encoding before passing it to the
database engine.</p><p>If you are handling some sort of binary data that is not in UTF-8, you can of course
work with the ByteString directly, which will bypass any conversion.</p><p>Due to lack of support by database engines, lazy ByteStrings are not passed to database
drivers. When you use <code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code> on a lazy ByteString, it will be converted to a strict
ByteString for storage. Similarly, <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> will convert a strict ByteString to
a lazy ByteString if you demand it.</p><p><em>EQUALITY OF SQLVALUE</em></p><p>Two SqlValues are considered to be equal if one of these hold. The
first comparison that can be made is controlling; if none of these
comparisons can be made, then they are not equal:</p><ul><li>Both are NULL</li><li>Both represent the same type and the encapsulated values are considered equal
by applying (==) to them</li><li>The values of each, when converted to a string, are equal</li></ul><p><em>STRING VERSIONS OF TIMES</em></p><p>Default string representations are given as comments below where such are non-obvious.
These are used for <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> when a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></code> is desired. They are also defaults for
representing data to SQL backends, though individual backends may override them
when a different format is demanded by the underlying database. Date and time formats
use ISO8601 date format, with HH:MM:SS added for time, and -HHMM added for timezone
offsets.</p><p><em>DEPRECATED CONSTRUCTORS</em></p><p><code><a href="Database-HDBC-SqlValue.html#v:SqlEpochTime">SqlEpochTime</a></code> and <code><a href="Database-HDBC-SqlValue.html#v:SqlTimeDiff">SqlTimeDiff</a></code> are no longer created automatically by any
<code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code> or <code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> functions or database backends. They may still be manually
constructed, but are
expected to be removed in a future version. Although these two constructures will
be removed, support for marshalling to and from the old System.Time data will be
maintained as long as System.Time is, simply using the newer data types for conversion.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SqlString" class="def">SqlString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlByteString" class="def">SqlByteString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlWord32" class="def">SqlWord32</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlWord64" class="def">SqlWord64</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word64">Word64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlInt32" class="def">SqlInt32</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlInt64" class="def">SqlInt64</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlInteger" class="def">SqlInteger</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlChar" class="def">SqlChar</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Char.html#t:Char">Char</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlBool" class="def">SqlBool</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlDouble" class="def">SqlDouble</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlRational" class="def">SqlRational</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Rational">Rational</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:SqlLocalDate" class="def">SqlLocalDate</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Calendar.html#t:Day">Day</a></td><td class="doc"><p>Local YYYY-MM-DD (no timezone).</p></td></tr><tr><td class="src"><a name="v:SqlLocalTimeOfDay" class="def">SqlLocalTimeOfDay</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a></td><td class="doc"><p>Local HH:MM:SS (no timezone).</p></td></tr><tr><td class="src"><a name="v:SqlZonedLocalTimeOfDay" class="def">SqlZonedLocalTimeOfDay</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a></td><td class="doc"><p>Local HH:MM:SS -HHMM. Converts to and from (TimeOfDay, TimeZone).</p></td></tr><tr><td class="src"><a name="v:SqlLocalTime" class="def">SqlLocalTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></td><td class="doc"><p>Local YYYY-MM-DD HH:MM:SS (no timezone).</p></td></tr><tr><td class="src"><a name="v:SqlZonedTime" class="def">SqlZonedTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a></td><td class="doc"><p>Local YYYY-MM-DD HH:MM:SS -HHMM. Considered equal if both convert to the same UTC time.</p></td></tr><tr><td class="src"><a name="v:SqlUTCTime" class="def">SqlUTCTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></td><td class="doc"><p>UTC YYYY-MM-DD HH:MM:SS.</p></td></tr><tr><td class="src"><a name="v:SqlDiffTime" class="def">SqlDiffTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></td><td class="doc"><p>Calendar diff between seconds. Rendered as Integer when converted to String, but greater precision may be preserved for other types or to underlying database.</p></td></tr><tr><td class="src"><a name="v:SqlPOSIXTime" class="def">SqlPOSIXTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></td><td class="doc"><p>Time as seconds since midnight Jan 1 1970 UTC. Integer rendering as for <code><a href="Database-HDBC-SqlValue.html#v:SqlDiffTime">SqlDiffTime</a></code>.</p></td></tr><tr><td class="src"><a name="v:SqlEpochTime" class="def">SqlEpochTime</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>DEPRECATED Representation of ClockTime or CalendarTime. Use SqlPOSIXTime instead.</p></td></tr><tr><td class="src"><a name="v:SqlTimeDiff" class="def">SqlTimeDiff</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>DEPRECATED Representation of TimeDiff. Use SqlDiffTime instead.</p></td></tr><tr><td class="src"><a name="v:SqlNull" class="def">SqlNull</a></td><td class="doc"><p>NULL in SQL or Nothing in Haskell.</p></td></tr></table></div><div class="subs instances"><p id="control.i:SqlValue" class="caption collapser" onclick="toggleSection('i:SqlValue')">Instances</p><div id="section.i:SqlValue" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-225" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-223" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-486" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Char.html#t:Char">Char</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-523" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-551" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-326" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-354" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-380" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-458" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Rational">Rational</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-581" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word32">Word32</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-406" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word64">Word64</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-432" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-259" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-313" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-320" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-302" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-296" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-704" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-730" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-641" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-756" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-797" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Calendar.html#t:Day">Day</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-609" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:DiffTime">DiffTime</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-882" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> TimeDiff <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-854" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> ClockTime <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-827" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> CalendarTime <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-908" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/Database-HDBC-SqlValue.html#line-488" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Char.html#t:Char">Char</a></span> <a href="src/Database-HDBC-SqlValue.html#line-525" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></span> <a href="src/Database-HDBC-SqlValue.html#line-553" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></span> <a href="src/Database-HDBC-SqlValue.html#line-330" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></span> <a href="src/Database-HDBC-SqlValue.html#line-356" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></span> <a href="src/Database-HDBC-SqlValue.html#line-382" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></span> <a href="src/Database-HDBC-SqlValue.html#line-460" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Rational">Rational</a></span> <a href="src/Database-HDBC-SqlValue.html#line-583" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word32">Word32</a></span> <a href="src/Database-HDBC-SqlValue.html#line-408" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Word.html#t:Word64">Word64</a></span> <a href="src/Database-HDBC-SqlValue.html#line-434" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></span> <a href="src/Database-HDBC-SqlValue.html#line-261" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/Database-HDBC-SqlValue.html#line-315" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></span> <a href="src/Database-HDBC-SqlValue.html#line-322" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></span> <a href="src/Database-HDBC-SqlValue.html#line-305" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></span> <a href="src/Database-HDBC-SqlValue.html#line-299" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></span> <a href="src/Database-HDBC-SqlValue.html#line-706" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a></span> <a href="src/Database-HDBC-SqlValue.html#line-732" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a></span> <a href="src/Database-HDBC-SqlValue.html#line-643" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></span> <a href="src/Database-HDBC-SqlValue.html#line-758" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></span> <a href="src/Database-HDBC-SqlValue.html#line-799" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Calendar.html#t:Day">Day</a></span> <a href="src/Database-HDBC-SqlValue.html#line-611" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:DiffTime">DiffTime</a></span> <a href="src/Database-HDBC-SqlValue.html#line-884" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> TimeDiff</span> <a href="src/Database-HDBC-SqlValue.html#line-856" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> ClockTime</span> <a href="src/Database-HDBC-SqlValue.html#line-829" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> CalendarTime</span> <a href="src/Database-HDBC-SqlValue.html#line-911" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-256" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> a => <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a)</span> <a href="src/Database-HDBC-SqlValue.html#line-918" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a>)</span> <a href="src/Database-HDBC-SqlValue.html#line-670" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> a <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> => <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a) <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-915" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a>) <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></span> <a href="src/Database-HDBC-SqlValue.html#line-668" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:safeFromSql" class="def">safeFromSql</a> :: <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> -> <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:ConvertResult">ConvertResult</a> a <a href="src/Database-HDBC-SqlValue.html#safeFromSql" class="link">Source</a></p><div class="doc"><p>Conversions to and from <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>s and standard Haskell types.</p><p>This function converts from an <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code> to a Haskell value. Many people will use the simpler
<code><a href="Database-HDBC-SqlValue.html#v:fromSql">fromSql</a></code> instead. This function is simply a restricted-type wrapper around
<code><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#v:safeConvert">safeConvert</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:toSql" class="def">toSql</a> :: <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> a <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> => a -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="src/Database-HDBC-SqlValue.html#toSql" class="link">Source</a></p><div class="doc"><p>Convert a value to an <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>. This function is simply
a restricted-type wrapper around <code><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#v:convert">convert</a></code>. See extended notes on <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:fromSql" class="def">fromSql</a> :: <a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> -> a <a href="src/Database-HDBC-SqlValue.html#fromSql" class="link">Source</a></p><div class="doc"><p>Convert from an <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code> to a Haskell value. Any problem is indicated by
calling <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#v:error">error</a></code>. This function is simply a restricted-type wrapper around
<code><a href="file:///usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#v:convert">convert</a></code>. See extended notes on <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:nToSql" class="def">nToSql</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integral">Integral</a> a => a -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="src/Database-HDBC-SqlValue.html#nToSql" class="link">Source</a></p><div class="doc"><p>Converts any Integral type to a <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code> by using toInteger. </p></div></div><div class="top"><p class="src"><a name="v:iToSql" class="def">iToSql</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="src/Database-HDBC-SqlValue.html#iToSql" class="link">Source</a></p><div class="doc"><p>Convenience function for using numeric literals in your program. </p></div></div><div class="top"><p class="src"><a name="v:posixToSql" class="def">posixToSql</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a> -> <a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a> <a href="src/Database-HDBC-SqlValue.html#posixToSql" class="link">Source</a></p><div class="doc"><p>Convenience function for converting <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></code> to a <code><a href="Database-HDBC-SqlValue.html#t:SqlValue">SqlValue</a></code>, because
<code><a href="Database-HDBC-SqlValue.html#v:toSql">toSql</a></code> cannot do the correct thing in this instance. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|