/usr/share/doc/libghc-persistent-sqlite-doc/html/Database-Sqlite.html is in libghc-persistent-sqlite-doc 2.2-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | <!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 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.2: 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"><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.8.2.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.8.2.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.8.2.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.8.2.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.8.2.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.8.2.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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.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.8.2.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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></li><li class="src short"><a href="#v:mkLogFunction">mkLogFunction</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Connection" class="def">Connection</a> <a href="src/Database-Sqlite.html#Connection" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Statement" class="def">Statement</a> <a href="src/Database-Sqlite.html#Statement" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Error" class="def">Error</a> <a href="src/Database-Sqlite.html#Error" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ErrorOK" class="def">ErrorOK</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorError" class="def">ErrorError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorInternal" class="def">ErrorInternal</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorPermission" class="def">ErrorPermission</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorAbort" class="def">ErrorAbort</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorBusy" class="def">ErrorBusy</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorLocked" class="def">ErrorLocked</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorNoMemory" class="def">ErrorNoMemory</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorReadOnly" class="def">ErrorReadOnly</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorInterrupt" class="def">ErrorInterrupt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorIO" class="def">ErrorIO</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorNotFound" class="def">ErrorNotFound</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorCorrupt" class="def">ErrorCorrupt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorFull" class="def">ErrorFull</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorCan-39-tOpen" class="def">ErrorCan'tOpen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorProtocol" class="def">ErrorProtocol</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorEmpty" class="def">ErrorEmpty</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorSchema" class="def">ErrorSchema</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorTooBig" class="def">ErrorTooBig</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorConstraint" class="def">ErrorConstraint</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorMismatch" class="def">ErrorMismatch</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorMisuse" class="def">ErrorMisuse</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorNoLargeFileSupport" class="def">ErrorNoLargeFileSupport</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorAuthorization" class="def">ErrorAuthorization</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorFormat" class="def">ErrorFormat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorRange" class="def">ErrorRange</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorNotAConnection" class="def">ErrorNotAConnection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ErrorRow" class="def">ErrorRow</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="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"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Sqlite.html#t:Error">Error</a></span> <a href="src/Database-Sqlite.html#line-114" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:Error">Error</a></span> <a href="src/Database-Sqlite.html#line-114" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SqliteException" class="def">SqliteException</a> <a href="src/Database-Sqlite.html#SqliteException" class="link">Source</a></p><div class="doc"><p>A custom exception type to make it easier to catch exceptions.</p><p>Since 2.1.3</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="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><dl><dt class="src"><a name="v:seError" class="def">seError</a> :: !<a href="Database-Sqlite.html#t:Error">Error</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seFunctionName" class="def">seFunctionName</a> :: !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seDetails" class="def">seDetails</a> :: !<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</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: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"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:SqliteException">SqliteException</a></span> <a href="src/Database-Sqlite.html#line-75" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/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-83" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:StepResult" class="def">StepResult</a> <a href="src/Database-Sqlite.html#StepResult" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Row" class="def">Row</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="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"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Sqlite.html#t:StepResult">StepResult</a></span> <a href="src/Database-Sqlite.html#line-116" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Sqlite.html#t:StepResult">StepResult</a></span> <a href="src/Database-Sqlite.html#line-116" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Config" class="def">Config</a> <a href="src/Database-Sqlite.html#Config" class="link">Source</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>Since 2.1.4</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="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 name="t:LogFunction" class="def">LogFunction</a> <a href="src/Database-Sqlite.html#LogFunction" class="link">Source</a></p><div class="doc"><p>Since 2.1.4</p></div></div><div class="top"><p class="src"><a name="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.8.2.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></p></div><div class="top"><p class="src"><a name="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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#close" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.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></p></div><div class="top"><p class="src"><a name="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.8.2.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></p></div><div class="top"><p class="src"><a name="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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#reset" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#finalize" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindBlob" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindDouble" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindInt" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindInt64" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindNull" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bindText" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#bind" class="link">Source</a></p></div><div class="top"><p class="src"><a name="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.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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></p></div><div class="top"><p class="src"><a name="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.8.2.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></p></div><div class="top"><p class="src"><a name="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.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> <a href="src/Database-Sqlite.html#changes" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:mkLogFunction" class="def">mkLogFunction</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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></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 name="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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#freeLogFunction" class="link">Source</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>Since 2.1.4</p></div></div><div class="top"><p class="src"><a name="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.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Database-Sqlite.html#config" class="link">Source</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>Since 2.1.4</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|