/usr/share/doc/libghc-persistent-sqlite-doc/html/Database-Sqlite.html is in libghc-persistent-sqlite-doc 2.6.3-1build1.
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 | <!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.Sqlite</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Database-Sqlite.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-Sqlite.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">persistent-sqlite-2.6.3: Backend for the persistent library using sqlite3.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Database.Sqlite</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A port of the direct-sqlite package for dealing directly with
<code><a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a></code>s.</p></div></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:Connection">Connection</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Statement">Statement</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Error">Error</a><ul class="subs"><li>= <a href="#v:ErrorOK">ErrorOK</a></li><li>| <a href="#v:ErrorError">ErrorError</a></li><li>| <a href="#v:ErrorInternal">ErrorInternal</a></li><li>| <a href="#v:ErrorPermission">ErrorPermission</a></li><li>| <a href="#v:ErrorAbort">ErrorAbort</a></li><li>| <a href="#v:ErrorBusy">ErrorBusy</a></li><li>| <a href="#v:ErrorLocked">ErrorLocked</a></li><li>| <a href="#v:ErrorNoMemory">ErrorNoMemory</a></li><li>| <a href="#v:ErrorReadOnly">ErrorReadOnly</a></li><li>| <a href="#v:ErrorInterrupt">ErrorInterrupt</a></li><li>| <a href="#v:ErrorIO">ErrorIO</a></li><li>| <a href="#v:ErrorNotFound">ErrorNotFound</a></li><li>| <a href="#v:ErrorCorrupt">ErrorCorrupt</a></li><li>| <a href="#v:ErrorFull">ErrorFull</a></li><li>| <a href="#v:ErrorCan-39-tOpen">ErrorCan'tOpen</a></li><li>| <a href="#v:ErrorProtocol">ErrorProtocol</a></li><li>| <a href="#v:ErrorEmpty">ErrorEmpty</a></li><li>| <a href="#v:ErrorSchema">ErrorSchema</a></li><li>| <a href="#v:ErrorTooBig">ErrorTooBig</a></li><li>| <a href="#v:ErrorConstraint">ErrorConstraint</a></li><li>| <a href="#v:ErrorMismatch">ErrorMismatch</a></li><li>| <a href="#v:ErrorMisuse">ErrorMisuse</a></li><li>| <a href="#v:ErrorNoLargeFileSupport">ErrorNoLargeFileSupport</a></li><li>| <a href="#v:ErrorAuthorization">ErrorAuthorization</a></li><li>| <a href="#v:ErrorFormat">ErrorFormat</a></li><li>| <a href="#v:ErrorRange">ErrorRange</a></li><li>| <a href="#v:ErrorNotAConnection">ErrorNotAConnection</a></li><li>| <a href="#v:ErrorRow">ErrorRow</a></li><li>| <a href="#v:ErrorDone">ErrorDone</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:SqliteException">SqliteException</a> = <a href="#v:SqliteException">SqliteException</a> {<ul class="subs"><li><a href="#v:seError">seError</a> :: !<a href="Database-Sqlite.html#t:Error">Error</a></li><li><a href="#v:seFunctionName">seFunctionName</a> :: !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li><a href="#v:seDetails">seDetails</a> :: !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:StepResult">StepResult</a><ul class="subs"><li>= <a href="#v:Row">Row</a></li><li>| <a href="#v:Done">Done</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Config">Config</a> = <a href="#v:ConfigLogFn">ConfigLogFn</a> <a href="Database-Sqlite.html#t:LogFunction">LogFunction</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:LogFunction">LogFunction</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:SqliteStatus">SqliteStatus</a> = <a href="#v:SqliteStatus">SqliteStatus</a> {<ul class="subs"><li><a href="#v:sqliteStatusCurrent">sqliteStatusCurrent</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:sqliteStatusHighwater">sqliteStatusHighwater</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:SqliteStatusVerb">SqliteStatusVerb</a><ul class="subs"><li>= <a href="#v:SqliteStatusMemoryUsed">SqliteStatusMemoryUsed</a></li><li>| <a href="#v:SqliteStatusPagecacheUsed">SqliteStatusPagecacheUsed</a></li><li>| <a href="#v:SqliteStatusPagecacheOverflow">SqliteStatusPagecacheOverflow</a></li><li>| <a href="#v:SqliteStatusScratchUsed">SqliteStatusScratchUsed</a></li><li>| <a href="#v:SqliteStatusScratchOverflow">SqliteStatusScratchOverflow</a></li><li>| <a href="#v:SqliteStatusMallocSize">SqliteStatusMallocSize</a></li><li>| <a href="#v:SqliteStatusPagecacheSize">SqliteStatusPagecacheSize</a></li><li>| <a href="#v:SqliteStatusScratchSize">SqliteStatusScratchSize</a></li><li>| <a href="#v:SqliteStatusMallocCount">SqliteStatusMallocCount</a></li></ul></li><li class="src short"><a href="#v:open">open</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:Connection">Connection</a></li><li class="src short"><a href="#v:close">close</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:prepare">prepare</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:Statement">Statement</a></li><li class="src short"><a href="#v:step">step</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:StepResult">StepResult</a></li><li class="src short"><a href="#v:reset">reset</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:finalize">finalize</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bindBlob">bindBlob</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bindDouble">bindDouble</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bindInt">bindInt</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bindInt64">bindInt64</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bindNull">bindNull</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bindText">bindText</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:bind">bind</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> [<a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:column">column</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a></li><li class="src short"><a href="#v:columns">columns</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> [<a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a>]</li><li class="src short"><a href="#v:changes">changes</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></li><li class="src short"><a href="#v:mkLogFunction">mkLogFunction</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:LogFunction">LogFunction</a></li><li class="src short"><a href="#v:freeLogFunction">freeLogFunction</a> :: <a href="Database-Sqlite.html#t:LogFunction">LogFunction</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:config">config</a> :: <a href="Database-Sqlite.html#t:Config">Config</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:status">status</a> :: <a href="Database-Sqlite.html#t:SqliteStatusVerb">SqliteStatusVerb</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a></li><li class="src short"><a href="#v:softHeapLimit">softHeapLimit</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Connection" class="def">Connection</a> <a href="src/Database-Sqlite.html#Connection" class="link">Source</a> <a href="#t:Connection" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Statement" class="def">Statement</a> <a href="src/Database-Sqlite.html#Statement" class="link">Source</a> <a href="#t:Statement" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Error" class="def">Error</a> <a href="src/Database-Sqlite.html#Error" class="link">Source</a> <a href="#t:Error" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ErrorOK" class="def">ErrorOK</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorError" class="def">ErrorError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorInternal" class="def">ErrorInternal</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorPermission" class="def">ErrorPermission</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorAbort" class="def">ErrorAbort</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorBusy" class="def">ErrorBusy</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorLocked" class="def">ErrorLocked</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorNoMemory" class="def">ErrorNoMemory</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorReadOnly" class="def">ErrorReadOnly</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorInterrupt" class="def">ErrorInterrupt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorIO" class="def">ErrorIO</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorNotFound" class="def">ErrorNotFound</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorCorrupt" class="def">ErrorCorrupt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorFull" class="def">ErrorFull</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorCan-39-tOpen" class="def">ErrorCan'tOpen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorProtocol" class="def">ErrorProtocol</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorEmpty" class="def">ErrorEmpty</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorSchema" class="def">ErrorSchema</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorTooBig" class="def">ErrorTooBig</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorConstraint" class="def">ErrorConstraint</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorMismatch" class="def">ErrorMismatch</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorMisuse" class="def">ErrorMisuse</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorNoLargeFileSupport" class="def">ErrorNoLargeFileSupport</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorAuthorization" class="def">ErrorAuthorization</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorFormat" class="def">ErrorFormat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorRange" class="def">ErrorRange</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorNotAConnection" class="def">ErrorNotAConnection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorRow" class="def">ErrorRow</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ErrorDone" class="def">ErrorDone</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Error" class="caption collapser" onclick="toggleSection('i:Error')">Instances</p><div id="section.i:Error" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Error:Eq:1" class="instance expander" onclick="toggleSection('i:id:Error:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Sqlite.html#t:Error">Error</a></span> <a href="src/Database-Sqlite.html#line-119" class="link">Source</a> <a href="#t:Error" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Error:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Database-Sqlite.html#t:Error">Error</a> -> <a href="Database-Sqlite.html#t:Error">Error</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Database-Sqlite.html#t:Error">Error</a> -> <a href="Database-Sqlite.html#t:Error">Error</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Error:Show:2" class="instance expander" onclick="toggleSection('i:id:Error:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:Error">Error</a></span> <a href="src/Database-Sqlite.html#line-119" class="link">Source</a> <a href="#t:Error" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Error:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Database-Sqlite.html#t:Error">Error</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Database-Sqlite.html#t:Error">Error</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Database-Sqlite.html#t:Error">Error</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SqliteException" class="def">SqliteException</a> <a href="src/Database-Sqlite.html#SqliteException" class="link">Source</a> <a href="#t:SqliteException" class="selflink">#</a></p><div class="doc"><p>A custom exception type to make it easier to catch exceptions.</p><p><em>Since: 2.1.3</em></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:SqliteException" class="def">SqliteException</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:seError" class="def">seError</a> :: !<a href="Database-Sqlite.html#t:Error">Error</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:seFunctionName" class="def">seFunctionName</a> :: !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:seDetails" class="def">seDetails</a> :: !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:SqliteException" class="caption collapser" onclick="toggleSection('i:SqliteException')">Instances</p><div id="section.i:SqliteException" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SqliteException:Show:1" class="instance expander" onclick="toggleSection('i:id:SqliteException:Show:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a></span> <a href="src/Database-Sqlite.html#line-80" class="link">Source</a> <a href="#t:SqliteException" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SqliteException:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Database-Sqlite.html#t:SqliteException">SqliteException</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SqliteException:Exception:2" class="instance expander" onclick="toggleSection('i:id:SqliteException:Exception:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a></span> <a href="src/Database-Sqlite.html#line-88" class="link">Source</a> <a href="#t:SqliteException" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SqliteException:Exception:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toException">toException</a> :: <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:SomeException">SomeException</a> <a href="#v:toException" class="selflink">#</a></p><p class="src"><a href="#v:fromException">fromException</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:SomeException">SomeException</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a> <a href="#v:fromException" class="selflink">#</a></p><p class="src"><a href="#v:displayException">displayException</a> :: <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:displayException" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:StepResult" class="def">StepResult</a> <a href="src/Database-Sqlite.html#StepResult" class="link">Source</a> <a href="#t:StepResult" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Row" class="def">Row</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Done" class="def">Done</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:StepResult" class="caption collapser" onclick="toggleSection('i:StepResult')">Instances</p><div id="section.i:StepResult" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:StepResult:Eq:1" class="instance expander" onclick="toggleSection('i:id:StepResult:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Sqlite.html#t:StepResult">StepResult</a></span> <a href="src/Database-Sqlite.html#line-121" class="link">Source</a> <a href="#t:StepResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:StepResult:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Database-Sqlite.html#t:StepResult">StepResult</a> -> <a href="Database-Sqlite.html#t:StepResult">StepResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Database-Sqlite.html#t:StepResult">StepResult</a> -> <a href="Database-Sqlite.html#t:StepResult">StepResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:StepResult:Show:2" class="instance expander" onclick="toggleSection('i:id:StepResult:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:StepResult">StepResult</a></span> <a href="src/Database-Sqlite.html#line-121" class="link">Source</a> <a href="#t:StepResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:StepResult:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Database-Sqlite.html#t:StepResult">StepResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Database-Sqlite.html#t:StepResult">StepResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Database-Sqlite.html#t:StepResult">StepResult</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Config" class="def">Config</a> <a href="src/Database-Sqlite.html#Config" class="link">Source</a> <a href="#t:Config" class="selflink">#</a></p><div class="doc"><p>Configuration option for SQLite to be used together with the <code><a href="Database-Sqlite.html#v:config">config</a></code> function.</p><p><em>Since: 2.1.4</em></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ConfigLogFn" class="def">ConfigLogFn</a> <a href="Database-Sqlite.html#t:LogFunction">LogFunction</a></td><td class="doc"><p>A function to be used for logging</p></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:LogFunction" class="def">LogFunction</a> <a href="src/Database-Sqlite.html#LogFunction" class="link">Source</a> <a href="#t:LogFunction" class="selflink">#</a></p><div class="doc"><p><em>Since: 2.1.4</em></p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SqliteStatus" class="def">SqliteStatus</a> <a href="src/Database-Sqlite.html#SqliteStatus" class="link">Source</a> <a href="#t:SqliteStatus" class="selflink">#</a></p><div class="doc"><p>Return type of the <code><a href="Database-Sqlite.html#v:status">status</a></code> function</p><p><em>Since: 2.6.1</em></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:SqliteStatus" class="def">SqliteStatus</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:sqliteStatusCurrent" class="def">sqliteStatusCurrent</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>The current value of the parameter. Some parameters do not record current value.</p></div></li><li><dfn class="src"><a id="v:sqliteStatusHighwater" class="def">sqliteStatusHighwater</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>The highest recorded value. Some parameters do not record the highest value.</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:SqliteStatus" class="caption collapser" onclick="toggleSection('i:SqliteStatus')">Instances</p><div id="section.i:SqliteStatus" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SqliteStatus:Eq:1" class="instance expander" onclick="toggleSection('i:id:SqliteStatus:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a></span> <a href="src/Database-Sqlite.html#line-546" class="link">Source</a> <a href="#t:SqliteStatus" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SqliteStatus:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> -> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> -> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SqliteStatus:Show:2" class="instance expander" onclick="toggleSection('i:id:SqliteStatus:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a></span> <a href="src/Database-Sqlite.html#line-546" class="link">Source</a> <a href="#t:SqliteStatus" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SqliteStatus:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SqliteStatusVerb" class="def">SqliteStatusVerb</a> <a href="src/Database-Sqlite.html#SqliteStatusVerb" class="link">Source</a> <a href="#t:SqliteStatusVerb" class="selflink">#</a></p><div class="doc"><p>Run-time status parameter that can be returned by <code><a href="Database-Sqlite.html#v:status">status</a></code> function.</p><p><em>Since: 2.6.1</em></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:SqliteStatusMemoryUsed" class="def">SqliteStatusMemoryUsed</a></td><td class="doc"><p>This parameter is the current amount of memory checked out using sqlite3_malloc(),
either directly or indirectly. The figure includes calls made to sqlite3_malloc()
by the application and internal memory usage by the SQLite library. Scratch memory
controlled by SQLITE_CONFIG_SCRATCH and auxiliary page-cache memory controlled by
SQLITE_CONFIG_PAGECACHE is not included in this parameter. The amount returned is
the sum of the allocation sizes as reported by the xSize method in sqlite3_mem_methods.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusPagecacheUsed" class="def">SqliteStatusPagecacheUsed</a></td><td class="doc"><p>This parameter returns the number of pages used out of the pagecache memory
allocator that was configured using SQLITE_CONFIG_PAGECACHE. The value returned
is in pages, not in bytes.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusPagecacheOverflow" class="def">SqliteStatusPagecacheOverflow</a></td><td class="doc"><p>This parameter returns the number of bytes of page cache allocation which
could not be satisfied by the SQLITE_CONFIG_PAGECACHE buffer and where forced
to overflow to sqlite3_malloc(). The returned value includes allocations that
overflowed because they where too large (they were larger than the "sz"
parameter to SQLITE_CONFIG_PAGECACHE) and allocations that overflowed because
no space was left in the page cache.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusScratchUsed" class="def">SqliteStatusScratchUsed</a></td><td class="doc"><p>This parameter returns the number of allocations used out of the scratch
memory allocator configured using SQLITE_CONFIG_SCRATCH. The value returned
is in allocations, not in bytes. Since a single thread may only have one
scratch allocation outstanding at time, this parameter also reports the
number of threads using scratch memory at the same time.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusScratchOverflow" class="def">SqliteStatusScratchOverflow</a></td><td class="doc"><p>This parameter returns the number of bytes of scratch memory allocation
which could not be satisfied by the SQLITE_CONFIG_SCRATCH buffer and where
forced to overflow to sqlite3_malloc(). The values returned include overflows
because the requested allocation was too larger (that is, because the requested
allocation was larger than the "sz" parameter to SQLITE_CONFIG_SCRATCH) and
because no scratch buffer slots were available.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusMallocSize" class="def">SqliteStatusMallocSize</a></td><td class="doc"><p>This parameter records the largest memory allocation request handed to
sqlite3_malloc() or sqlite3_realloc() (or their internal equivalents). Only
the value returned in <code><a href="Database-Sqlite.html#v:sqliteStatusHighwater">sqliteStatusHighwater</a></code> field of <code><a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a></code> record
is of interest. The value written into the <code><a href="Database-Sqlite.html#v:sqliteStatusCurrent">sqliteStatusCurrent</a></code> field is Nothing.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusPagecacheSize" class="def">SqliteStatusPagecacheSize</a></td><td class="doc"><p>This parameter records the largest memory allocation request handed to
pagecache memory allocator. Only the value returned in the <code><a href="Database-Sqlite.html#v:sqliteStatusHighwater">sqliteStatusHighwater</a></code>
field of <code><a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a></code> record is of interest. The value written into the
<code><a href="Database-Sqlite.html#v:sqliteStatusCurrent">sqliteStatusCurrent</a></code> field is Nothing.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusScratchSize" class="def">SqliteStatusScratchSize</a></td><td class="doc"><p>This parameter records the largest memory allocation request handed to
scratch memory allocator. Only the value returned in the <code><a href="Database-Sqlite.html#v:sqliteStatusHighwater">sqliteStatusHighwater</a></code>
field of <code><a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a></code> record is of interest. The value written into the
<code><a href="Database-Sqlite.html#v:sqliteStatusCurrent">sqliteStatusCurrent</a></code> field is Nothing.</p></td></tr><tr><td class="src"><a id="v:SqliteStatusMallocCount" class="def">SqliteStatusMallocCount</a></td><td class="doc"><p>This parameter records the number of separate memory allocations currently
checked out.</p></td></tr></table></div></div><div class="top"><p class="src"><a id="v:open" class="def">open</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:Connection">Connection</a> <a href="src/Database-Sqlite.html#open" class="link">Source</a> <a href="#v:open" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:close" class="def">close</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#close" class="link">Source</a> <a href="#v:close" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:prepare" class="def">prepare</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:Statement">Statement</a> <a href="src/Database-Sqlite.html#prepare" class="link">Source</a> <a href="#v:prepare" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:step" class="def">step</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:StepResult">StepResult</a> <a href="src/Database-Sqlite.html#step" class="link">Source</a> <a href="#v:step" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:reset" class="def">reset</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#reset" class="link">Source</a> <a href="#v:reset" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:finalize" class="def">finalize</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#finalize" class="link">Source</a> <a href="#v:finalize" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bindBlob" class="def">bindBlob</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindBlob" class="link">Source</a> <a href="#v:bindBlob" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bindDouble" class="def">bindDouble</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindDouble" class="link">Source</a> <a href="#v:bindDouble" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bindInt" class="def">bindInt</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindInt" class="link">Source</a> <a href="#v:bindInt" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bindInt64" class="def">bindInt64</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindInt64" class="link">Source</a> <a href="#v:bindInt64" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bindNull" class="def">bindNull</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindNull" class="link">Source</a> <a href="#v:bindNull" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bindText" class="def">bindText</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindText" class="link">Source</a> <a href="#v:bindText" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:bind" class="def">bind</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> [<a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bind" class="link">Source</a> <a href="#v:bind" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:column" class="def">column</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a> <a href="src/Database-Sqlite.html#column" class="link">Source</a> <a href="#v:column" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:columns" class="def">columns</a> :: <a href="Database-Sqlite.html#t:Statement">Statement</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> [<a href="file:///usr/share/doc/libghc-persistent-doc/html/Database-Persist-Types.html#t:PersistValue">PersistValue</a>] <a href="src/Database-Sqlite.html#columns" class="link">Source</a> <a href="#v:columns" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:changes" class="def">changes</a> :: <a href="Database-Sqlite.html#t:Connection">Connection</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> <a href="src/Database-Sqlite.html#changes" class="link">Source</a> <a href="#v:changes" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mkLogFunction" class="def">mkLogFunction</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:LogFunction">LogFunction</a> <a href="src/Database-Sqlite.html#mkLogFunction" class="link">Source</a> <a href="#v:mkLogFunction" class="selflink">#</a></p><div class="doc"><p>Wraps a given function to a <code><a href="Database-Sqlite.html#t:LogFunction">LogFunction</a></code> to be further used with <code><a href="Database-Sqlite.html#v:ConfigLogFn">ConfigLogFn</a></code>.
First argument of given function will take error code, second - log message.
Returned value should be released with <code><a href="Database-Sqlite.html#v:freeLogFunction">freeLogFunction</a></code> when no longer required.</p></div></div><div class="top"><p class="src"><a id="v:freeLogFunction" class="def">freeLogFunction</a> :: <a href="Database-Sqlite.html#t:LogFunction">LogFunction</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#freeLogFunction" class="link">Source</a> <a href="#v:freeLogFunction" class="selflink">#</a></p><div class="doc"><p>Releases a native FunPtr for the <code><a href="Database-Sqlite.html#t:LogFunction">LogFunction</a></code>.</p><p><em>Since: 2.1.4</em></p></div></div><div class="top"><p class="src"><a id="v:config" class="def">config</a> :: <a href="Database-Sqlite.html#t:Config">Config</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#config" class="link">Source</a> <a href="#v:config" class="selflink">#</a></p><div class="doc"><p>Sets SQLite global configuration parameter. See SQLite documentation for the <a href="https://www.sqlite.org/c3ref/config.html">sqlite3_config</a> function.
In short, this must be called prior to any other SQLite function if you want the call to succeed.</p><p><em>Since: 2.1.4</em></p></div></div><div class="top"><p class="src"><a id="v:status" class="def">status</a> :: <a href="Database-Sqlite.html#t:SqliteStatusVerb">SqliteStatusVerb</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Database-Sqlite.html#t:SqliteStatus">SqliteStatus</a> <a href="src/Database-Sqlite.html#status" class="link">Source</a> <a href="#v:status" class="selflink">#</a></p><div class="doc"><p>Retrieves runtime status information about the performance of SQLite,
and optionally resets various highwater marks. The first argument is a
status parameter to measure, the second is reset flag. If reset flag is
True then the highest recorded value is reset after being returned from
this function.</p><p><em>Since: 2.6.1</em></p></div></div><div class="top"><p class="src"><a id="v:softHeapLimit" class="def">softHeapLimit</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> <a href="src/Database-Sqlite.html#softHeapLimit" class="link">Source</a> <a href="#v:softHeapLimit" class="selflink">#</a></p><div class="doc"><p>Sets and/or queries the soft limit on the amount of heap memory that may be
allocated by SQLite. If the argument is zero then the soft heap limit is disabled.
If the argument is negative then no change is made to the soft heap limit. Hence,
the current size of the soft heap limit can be determined by invoking
this function with a negative argument.</p><p><em>Since: 2.6.1</em></p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|