/usr/share/doc/libghc-hdbc-doc/html/Database-HDBC-Statement.html is in libghc-hdbc-doc 2.3.1.2-3build1.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | <!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.Statement</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-Statement.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-HDBC-Statement.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.3.1.2: Haskell Database Connectivity</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Database.HDBC.Statement</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Re-exported from <a href="Database-HDBC-SqlValue.html">Database.HDBC.SqlValue</a>; this re-exporting is deprecated
</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:Statement">Statement</a> = <a href="#v:Statement">Statement</a> {<ul class="subs"><li><a href="#v:execute">execute</a> :: [<a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:executeRaw">executeRaw</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:executeMany">executeMany</a> :: [[<a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a>]] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:finish">finish</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:fetchRow">fetchRow</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a>])</li><li><a href="#v:getColumnNames">getColumnNames</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>]</li><li><a href="#v:originalQuery">originalQuery</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li><a href="#v:describeResult">describeResult</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Database-HDBC-ColTypes.html#t:SqlColDesc">SqlColDesc</a>)]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:SqlError">SqlError</a> = <a href="#v:SqlError">SqlError</a> {<ul class="subs"><li><a href="#v:seState">seState</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li><a href="#v:seNativeError">seNativeError</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li><a href="#v:seErrorMsg">seErrorMsg</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><a href="#v:nToSql">nToSql</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> a => a -> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></li><li class="src short"><a href="#v:iToSql">iToSql</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></li><li class="src short"><a href="#v:posixToSql">posixToSql</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a> -> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></li><li class="src short"><a href="#v:fromSql">fromSql</a> :: <a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> -> a</li><li class="src short"><a href="#v:safeFromSql">safeFromSql</a> :: <a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> -> <a href="/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="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> a <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> => a -> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></li><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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> </li><li>| <a href="#v:SqlByteString">SqlByteString</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> </li><li>| <a href="#v:SqlWord32">SqlWord32</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a> </li><li>| <a href="#v:SqlWord64">SqlWord64</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a> </li><li>| <a href="#v:SqlInt32">SqlInt32</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int32">Int32</a> </li><li>| <a href="#v:SqlInt64">SqlInt64</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int64">Int64</a> </li><li>| <a href="#v:SqlInteger">SqlInteger</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a> </li><li>| <a href="#v:SqlChar">SqlChar</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> </li><li>| <a href="#v:SqlBool">SqlBool</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> </li><li>| <a href="#v:SqlDouble">SqlDouble</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> </li><li>| <a href="#v:SqlRational">SqlRational</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Rational">Rational</a> </li><li>| <a href="#v:SqlLocalDate">SqlLocalDate</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Calendar.html#t:Day">Day</a> </li><li>| <a href="#v:SqlLocalTimeOfDay">SqlLocalTimeOfDay</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> </li><li>| <a href="#v:SqlZonedLocalTimeOfDay">SqlZonedLocalTimeOfDay</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a> </li><li>| <a href="#v:SqlLocalTime">SqlLocalTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a> </li><li>| <a href="#v:SqlZonedTime">SqlZonedTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a> </li><li>| <a href="#v:SqlUTCTime">SqlUTCTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a> </li><li>| <a href="#v:SqlDiffTime">SqlDiffTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a> </li><li>| <a href="#v:SqlPOSIXTime">SqlPOSIXTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a> </li><li>| <a href="#v:SqlEpochTime">SqlEpochTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a> </li><li>| <a href="#v:SqlTimeDiff">SqlTimeDiff</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a> </li><li>| <a href="#v:SqlNull">SqlNull</a> </li></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Statement" class="def">Statement</a> <a href="src/Database-HDBC-Statement.html#Statement" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Statement" class="def">Statement</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:execute" class="def">execute</a> :: [<a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Execute the prepared statement, passing in the given positional
parameters (that should take the place of the question marks
in the call to <code>prepare</code>).
</p><p>For non-SELECT queries, the return value is the number of
rows modified, if known. If no rows were modified, you get 0.
If the value is unknown, you get -1. All current HDBC drivers
support this function and should never return -1.
</p><p>For SELECT queries, you will always get 0.
</p><p>This function should automatically call finish() to finish the previous
execution, if necessary.
</p></dd><dt class="src"><a name="v:executeRaw" class="def">executeRaw</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc"><p>Execute the statement as-is, without supplying any
positional parameters. This is intended for statements for
which the results aren't interesting or present (e.g., DDL or
DML commands). If your query contains placeholders, this will
certainly fail; use <code><a href="Database-HDBC-Statement.html#v:execute">execute</a></code> instead.
</p></dd><dt class="src"><a name="v:executeMany" class="def">executeMany</a> :: [[<a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a>]] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc"><p>Execute the query with many rows.
The return value is the return value from the final row
as if you had called <code><a href="Database-HDBC-Statement.html#v:execute">execute</a></code> on it.
</p><p>Due to optimizations that are possible due to different
databases and driver designs, this can often be significantly
faster than using <code><a href="Database-HDBC-Statement.html#v:execute">execute</a></code> multiple times since queries
need to be compiled only once.
</p><p>This is most useful for non-SELECT statements.
</p></dd><dt class="src"><a name="v:finish" class="def">finish</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc"><p>Abort a query in progress -- usually not needed.
</p></dd><dt class="src"><a name="v:fetchRow" class="def">fetchRow</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a>])</dt><dd class="doc"><p>Fetches one row from the DB. Returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#v:Nothing">Nothing</a></code> if there
are no more rows. Will automatically call <code><a href="Database-HDBC-Statement.html#v:finish">finish</a></code> when
the last row is read.
</p></dd><dt class="src"><a name="v:getColumnNames" class="def">getColumnNames</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>]</dt><dd class="doc"><p>Returns a list of the column names in the result.
For maximum portability, you should not assume that
information is available until after an <code><a href="Database-HDBC-Statement.html#v:execute">execute</a></code> function
has been run.
</p><p>Information is returned here directly as returned
by the underlying database layer. Note that different
databases have different rules about capitalization
of return values and about representation of names
of columns that are not simple columns. For this reason,
it is suggested that you treat this information for
display purposes only. Failing that, you should convert
to lower (or upper) case, and use <code>AS</code> clauses for
anything other than simple columns.
</p><p>A simple getColumnNames implementation could simply
apply <code>map fst</code> to the return value of <code><a href="Database-HDBC-Statement.html#v:describeResult">describeResult</a></code>.
</p></dd><dt class="src"><a name="v:originalQuery" class="def">originalQuery</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The original query that this <code><a href="Database-HDBC-Statement.html#t:Statement">Statement</a></code> was prepared
with.
</p></dd><dt class="src"><a name="v:describeResult" class="def">describeResult</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Database-HDBC-ColTypes.html#t:SqlColDesc">SqlColDesc</a>)]</dt><dd class="doc"><p>Obtain information about the columns in the result set.
Must be run only after <code><a href="Database-HDBC-Statement.html#v:execute">execute</a></code>. The String in the result
set is the column name.
</p><p>You should expect this to be returned in the same manner
as a result from <code><a href="Database-HDBC.html#t:fetchAllRows-39-">fetchAllRows'</a></code>.
</p><p>All results should be converted to lowercase for you
before you see them.
</p><p>Please see caveats under <code><a href="Database-HDBC-Statement.html#v:getColumnNames">getColumnNames</a></code> for information
on the column name field here.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SqlError" class="def">SqlError</a> <a href="src/Database-HDBC-Statement.html#SqlError" class="link">Source</a></p><div class="doc"><p>The main HDBC exception object. As much information as possible
is passed from the database through to the application through this object.
</p><p>Errors generated in the Haskell layer will have seNativeError set to -1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SqlError" class="def">SqlError</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:seState" class="def">seState</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seNativeError" class="def">seNativeError</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seErrorMsg" class="def">seErrorMsg</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:SqlError" class="caption collapser" onclick="toggleSection('i:SqlError')">Instances</p><div id="section.i:SqlError" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Database-HDBC-Statement.html#t:SqlError">SqlError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Read.html#t:Read">Read</a> <a href="Database-HDBC-Statement.html#t:SqlError">SqlError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Database-HDBC-Statement.html#t:SqlError">SqlError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Database-HDBC-Statement.html#t:SqlError">SqlError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Database-HDBC-Statement.html#t:SqlError">SqlError</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:1">Re-exported from <a href="Database-HDBC-SqlValue.html">Database.HDBC.SqlValue</a>; this re-exporting is deprecated
</h1><div class="top"><p class="src"><a name="v:nToSql" class="def">nToSql</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> a => a -> <a href="Database-HDBC-Statement.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-Statement.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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="Database-HDBC-Statement.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a> -> <a href="Database-HDBC-Statement.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></code> to a <code><a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></code>, because
<code><a href="Database-HDBC-Statement.html#v:toSql">toSql</a></code> cannot do the correct thing in this instance.
</p></div></div><div class="top"><p class="src"><a name="v:fromSql" class="def">fromSql</a> :: <a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-Statement.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-Statement.html#t:SqlValue">SqlValue</a></code> to a Haskell value. Any problem is indicated by
calling <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#v:error">error</a></code>. This function is simply a restricted-type wrapper around
<code><a href="/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-Statement.html#t:SqlValue">SqlValue</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:safeFromSql" class="def">safeFromSql</a> :: <a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> a => <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> -> <a href="/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-Statement.html#t:SqlValue">SqlValue</a></code>s and standard Haskell types.
</p><p>This function converts from an <code><a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></code> to a Haskell value. Many people will use the simpler
<code><a href="Database-HDBC-Statement.html#v:fromSql">fromSql</a></code> instead. This function is simply a restricted-type wrapper around
<code><a href="/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="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> a <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> => a -> <a href="Database-HDBC-Statement.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-Statement.html#t:SqlValue">SqlValue</a></code>. This function is simply
a restricted-type wrapper around <code><a href="/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-Statement.html#t:SqlValue">SqlValue</a></code>.
</p></div></div><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-Statement.html#t:SqlValue">SqlValue</a></code> is he 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-Statement.html#t:SqlValue">SqlValue</a></code>
constructor. <code><a href="Database-HDBC-Statement.html#v:fromSql">fromSql</a></code> or <code><a href="Database-HDBC-Statement.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-Statement.html#v:toSql">toSql</a></code> and <code><a href="Database-HDBC-Statement.html#v:fromSql">fromSql</a></code> instead of manipulating
<code><a href="Database-HDBC-Statement.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-Statement.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-Statement.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="/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-Statement.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-Statement.html#v:toSql">toSql</a></code> never fails.
</li></ul><p>See also <code><a href="Database-HDBC-Statement.html#v:toSql">toSql</a></code>, <code><a href="Database-HDBC-Statement.html#v:safeFromSql">safeFromSql</a></code>, <code><a href="Database-HDBC-Statement.html#v:fromSql">fromSql</a></code>, <code><a href="Database-HDBC-Statement.html#v:nToSql">nToSql</a></code>, <code><a href="Database-HDBC-Statement.html#v:iToSql">iToSql</a></code>, <code><a href="Database-HDBC-Statement.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-Statement.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-Statement.html#v:fromSql">fromSql</a></code>, or a Left result if using <code><a href="Database-HDBC-Statement.html#v:safeFromSql">safeFromSql</a></code>.
</p><p><em>SPECIAL NOTE ON POSIXTIME</em>
</p><p>Note that a <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></code> or <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock-POSIX.html#t:POSIXTime">POSIXTime</a></code> is converted to <code><a href="Database-HDBC-Statement.html#v:SqlDiffTime">SqlDiffTime</a></code> by
<code><a href="Database-HDBC-Statement.html#v:toSql">toSql</a></code>. HDBC cannot differentiate between <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></code> and <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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-Statement.html#v:SqlPOSIXTime">SqlPOSIXTime</a></code>
manually or via <code><a href="Database-HDBC-Statement.html#v:posixToSql">posixToSql</a></code>, or use <code><a href="Database-HDBC-Statement.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-Statement.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-Statement.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-Statement.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-Statement.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-Statement.html#v:fromSql">fromSql</a></code> when a <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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-Statement.html#v:SqlEpochTime">SqlEpochTime</a></code> and <code><a href="Database-HDBC-Statement.html#v:SqlTimeDiff">SqlTimeDiff</a></code> are no longer created automatically by any
<code><a href="Database-HDBC-Statement.html#v:toSql">toSql</a></code> or <code><a href="Database-HDBC-Statement.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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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="/usr/share/doc/ghc-doc/html/libraries/time-1.4.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-Statement.html#v:SqlDiffTime">SqlDiffTime</a></code>.
</p></td></tr><tr><td class="src"><a name="v:SqlEpochTime" class="def">SqlEpochTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int32">Int32</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int64">Int64</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Rational">Rational</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:ClockTime">ClockTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:CalendarTime">CalendarTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:TimeDiff">TimeDiff</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Calendar.html#t:Day">Day</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:DiffTime">DiffTime</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int64">Int64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Rational">Rational</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:ClockTime">ClockTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:TimeDiff">TimeDiff</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:ZonedTime">ZonedTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Calendar.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:DiffTime">DiffTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> a => <a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a>)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> a <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a> => <a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a) <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-convertible-doc/html/Data-Convertible-Base.html#t:Convertible">Convertible</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeOfDay">TimeOfDay</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a>) <a href="Database-HDBC-Statement.html#t:SqlValue">SqlValue</a></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|