This file is indexed.

/usr/share/doc/haskell-haskelldb-doc/html/Database-HaskellDB-DBSpec.html is in libghc-haskelldb-doc 2.1.1-2.

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
<!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.HaskellDB.DBSpec</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-HaskellDB-DBSpec.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-HaskellDB-DBSpec.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">haskelldb-2.1.1: A library of combinators for generating and executing SQL statements.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>haskelldb-users@lists.sourceforge.net</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Database.HaskellDB.DBSpec</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>DBSpec is the new and improved way of specifying databases.
 It is designed to be able to describe a database in such a 
 way that it can easily be converted to a DBDirect-spec OR
 directly into a database
</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:DBInfo">DBInfo</a>  = <a href="#v:DBInfo">DBInfo</a> {<ul class="subs"><li><a href="#v:dbname">dbname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:opts">opts</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a></li><li><a href="#v:tbls">tbls</a> :: [<a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:TInfo">TInfo</a>  = <a href="#v:TInfo">TInfo</a> {<ul class="subs"><li><a href="#v:tname">tname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:cols">cols</a> :: [<a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:CInfo">CInfo</a>  = <a href="#v:CInfo">CInfo</a> {<ul class="subs"><li><a href="#v:cname">cname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:descr">descr</a> :: <a href="Database-HaskellDB-DBSpec.html#t:FieldDesc">FieldDesc</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:DBOptions">DBOptions</a>  = <a href="#v:DBOptions">DBOptions</a> {<ul class="subs"><li><a href="#v:useBString">useBString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:makeIdent">makeIdent</a> :: <a href="Database-HaskellDB-DBSpec-PPHelpers.html#t:MakeIdentifiers">MakeIdentifiers</a></li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:FieldDesc">FieldDesc</a> = (<a href="Database-HaskellDB-DBSpec.html#t:FieldType">FieldType</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:FieldType">FieldType</a> <ul class="subs"><li>= <a href="#v:StringT">StringT</a>  </li><li>| <a href="#v:IntT">IntT</a>  </li><li>| <a href="#v:IntegerT">IntegerT</a>  </li><li>| <a href="#v:DoubleT">DoubleT</a>  </li><li>| <a href="#v:BoolT">BoolT</a>  </li><li>| <a href="#v:CalendarTimeT">CalendarTimeT</a>  </li><li>| <a href="#v:BStrT">BStrT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>  </li></ul></li><li class="src short"><a href="#v:makeDBSpec">makeDBSpec</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a> -&gt; [<a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a>] -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></li><li class="src short"><a href="#v:makeTInfo">makeTInfo</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a>] -&gt; <a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a></li><li class="src short"><a href="#v:makeCInfo">makeCInfo</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:FieldDesc">FieldDesc</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a></li><li class="src short"><a href="#v:constructNonClashingDBInfo">constructNonClashingDBInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></li><li class="src short"><a href="#v:ppDBInfo">ppDBInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:ppTInfo">ppTInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:ppCInfo">ppCInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:ppDBOptions">ppDBOptions</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:dbInfoToDoc">dbInfoToDoc</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:finalizeSpec">finalizeSpec</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></li><li class="src short"><a href="#v:dbToDBSpec">dbToDBSpec</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="Database-HaskellDB-DBSpec-PPHelpers.html#t:MakeIdentifiers">MakeIdentifiers</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Database-HaskellDB-Database.html#t:Database">Database</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></li><li class="src short"><a href="#v:dbSpecToDatabase">dbSpecToDatabase</a> :: <a href="Database-HaskellDB-Database.html#t:Database">Database</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:DBInfo" class="def">DBInfo</a>  <a href="src/Database-HaskellDB-DBSpec-DBInfo.html#DBInfo" class="link">Source</a></p><div class="doc"><p>Defines a database layout, top level
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:DBInfo" class="def">DBInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:dbname" class="def">dbname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The name of the database
</p></dd><dt class="src"><a name="v:opts" class="def">opts</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a></dt><dd class="doc"><p>Any options (i.e whether to use
   Bounded Strings)
</p></dd><dt class="src"><a name="v:tbls" class="def">tbls</a> :: [<a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a>]</dt><dd class="doc"><p>Tables this database contains
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:DBInfo" class="caption collapser" onclick="toggleSection('i:DBInfo')">Instances</p><div id="section.i:DBInfo" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:TInfo" class="def">TInfo</a>  <a href="src/Database-HaskellDB-DBSpec-DBInfo.html#TInfo" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TInfo" class="def">TInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:tname" class="def">tname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The name of the table
</p></dd><dt class="src"><a name="v:cols" class="def">cols</a> :: [<a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a>]</dt><dd class="doc"><p>The columns in this table
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:TInfo" class="caption collapser" onclick="toggleSection('i:TInfo')">Instances</p><div id="section.i:TInfo" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:CInfo" class="def">CInfo</a>  <a href="src/Database-HaskellDB-DBSpec-DBInfo.html#CInfo" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:CInfo" class="def">CInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:cname" class="def">cname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The name of this column
</p></dd><dt class="src"><a name="v:descr" class="def">descr</a> :: <a href="Database-HaskellDB-DBSpec.html#t:FieldDesc">FieldDesc</a></dt><dd class="doc"><p>The description of this column
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:CInfo" class="caption collapser" onclick="toggleSection('i:CInfo')">Instances</p><div id="section.i:CInfo" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:DBOptions" class="def">DBOptions</a>  <a href="src/Database-HaskellDB-DBSpec-DBInfo.html#DBOptions" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:DBOptions" class="def">DBOptions</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:useBString" class="def">useBString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>Use Bounded Strings?
</p></dd><dt class="src"><a name="v:makeIdent" class="def">makeIdent</a> :: <a href="Database-HaskellDB-DBSpec-PPHelpers.html#t:MakeIdentifiers">MakeIdentifiers</a></dt><dd class="doc"><p>Conversion routines from Database identifiers to Haskell identifiers
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:DBOptions" class="caption collapser" onclick="toggleSection('i:DBOptions')">Instances</p><div id="section.i:DBOptions" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:FieldDesc" class="def">FieldDesc</a> = (<a href="Database-HaskellDB-DBSpec.html#t:FieldType">FieldType</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>)<a href="src/Database-HaskellDB-FieldType.html#FieldDesc" class="link">Source</a></p><div class="doc"><p>The type and <code>nullable</code> flag of a database column
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FieldType" class="def">FieldType</a>  <a href="src/Database-HaskellDB-FieldType.html#FieldType" class="link">Source</a></p><div class="doc"><p>A database column type
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:StringT" class="def">StringT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:IntT" class="def">IntT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:IntegerT" class="def">IntegerT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:DoubleT" class="def">DoubleT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:BoolT" class="def">BoolT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:CalendarTimeT" class="def">CalendarTimeT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:BStrT" class="def">BStrT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:FieldType" class="caption collapser" onclick="toggleSection('i:FieldType')">Instances</p><div id="section.i:FieldType" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-HaskellDB-DBSpec.html#t:FieldType">FieldType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Database-HaskellDB-DBSpec.html#t:FieldType">FieldType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> <a href="Database-HaskellDB-DBSpec.html#t:FieldType">FieldType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Database-HaskellDB-DBSpec.html#t:FieldType">FieldType</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:makeDBSpec" class="def">makeDBSpec</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#makeDBSpec" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The name of the Database
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a></td><td class="doc"><p>Options
</p></td></tr><tr><td class="src">-&gt; [<a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a>]</td><td class="doc"><p>Tables
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></td><td class="doc"><p>The generated DBInfo
</p></td></tr></table></div><div class="doc"><p>Creates a DBInfo
</p></div></div><div class="top"><p class="src"><a name="v:makeTInfo" class="def">makeTInfo</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#makeTInfo" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The table name
</p></td></tr><tr><td class="src">-&gt; [<a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a>]</td><td class="doc"><p>Columns 
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a></td><td class="doc"><p>The generated TInfo
</p></td></tr></table></div><div class="doc"><p>Creates a TInfo
</p></div></div><div class="top"><p class="src"><a name="v:makeCInfo" class="def">makeCInfo</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#makeCInfo" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The column name
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec.html#t:FieldDesc">FieldDesc</a></td><td class="doc"><p>What the column contains
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a></td><td class="doc"><p>The generated CInfo
</p></td></tr></table></div><div class="doc"><p>Creates a CInfo
</p></div></div><div class="top"><p class="src"><a name="v:constructNonClashingDBInfo" class="def">constructNonClashingDBInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#constructNonClashingDBInfo" class="link">Source</a></p><div class="doc"><p>Constructs a DBInfo that doesn't cause nameclashes
</p></div></div><div class="top"><p class="src"><a name="v:ppDBInfo" class="def">ppDBInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#ppDBInfo" class="link">Source</a></p><div class="doc"><p>Pretty prints a DBInfo
</p></div></div><div class="top"><p class="src"><a name="v:ppTInfo" class="def">ppTInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:TInfo">TInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#ppTInfo" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ppCInfo" class="def">ppCInfo</a> :: <a href="Database-HaskellDB-DBSpec.html#t:CInfo">CInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#ppCInfo" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ppDBOptions" class="def">ppDBOptions</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBOptions">DBOptions</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#ppDBOptions" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:dbInfoToDoc" class="def">dbInfoToDoc</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html#t:Doc">Doc</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#dbInfoToDoc" class="link">Source</a></p><div class="doc"><p>Creates a valid declaration of a DBInfo. The variable name will be the
   same as the database name
</p></div></div><div class="top"><p class="src"><a name="v:finalizeSpec" class="def">finalizeSpec</a> :: <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a> -&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a><a href="src/Database-HaskellDB-DBSpec-DBInfo.html#finalizeSpec" class="link">Source</a></p><div class="doc"><p>Does a final <a href="touching up.html">touching up</a> of a DBInfo before it is used by i.e DBDirect.
 This converts any Bounded Strings to ordinary strings if that flag is set.
</p></div></div><div class="top"><p class="src"><a name="v:dbToDBSpec" class="def">dbToDBSpec</a><a href="src/Database-HaskellDB-DBSpec-DatabaseToDBSpec.html#dbToDBSpec" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>Use bounded strings?
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec-PPHelpers.html#t:MakeIdentifiers">MakeIdentifiers</a></td><td class="doc"><p>style of generated Haskell identifiers, cOLUMN_NAME vs. columnName
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>the name our database should have
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-Database.html#t:Database">Database</a></td><td class="doc"><p>the database connection
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></td><td class="doc"><p>return a DBInfo
</p></td></tr></table></div><div class="doc"><p>Connects to a database and generates a specification from it
</p></div></div><div class="top"><p class="src"><a name="v:dbSpecToDatabase" class="def">dbSpecToDatabase</a><a href="src/Database-HaskellDB-DBSpec-DBSpecToDatabase.html#dbSpecToDatabase" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-HaskellDB-Database.html#t:Database">Database</a></td><td class="doc"><p>A Database
</p></td></tr><tr><td class="src">-&gt; <a href="Database-HaskellDB-DBSpec.html#t:DBInfo">DBInfo</a></td><td class="doc"><p>The DBInfo to generate from
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Converts a DBInfo to a real life Database, note that the database must
 exist for this to work
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>