Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ccgus/fmdb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAugust "Gus" Mueller <gus@flyingmeat.com>2013-06-08 01:43:44 +0400
committerAugust "Gus" Mueller <gus@flyingmeat.com>2013-06-08 01:43:44 +0400
commitc1d7eb967de6da7a5de4cb872d57292d11b81abf (patch)
tree021c3f4d1867c1e7b52b90e6e0be28e730f1556d
parent26489fc00500df343482e2c654d71ce5d7e2731e (diff)
parentf40df4cf2a80f99906e6a74cdb1c2ffa21980e10 (diff)
Merge pull request #154 from robertmryan/gh-pages
Modified gh-pages to include class reference
-rw-r--r--html/Categories/FMDatabase+FMDatabaseAdditions.html1455
-rw-r--r--html/Classes/FMDatabase.html4217
-rw-r--r--html/Classes/FMDatabasePool.html869
-rw-r--r--html/Classes/FMDatabaseQueue.html730
-rw-r--r--html/Classes/FMResultSet.html2857
-rw-r--r--html/Classes/FMStatement.html538
-rwxr-xr-xhtml/css/styles.css588
-rw-r--r--html/css/stylesPrint.css22
-rw-r--r--html/hierarchy.html90
-rw-r--r--html/img/button_bar_background.pngbin0 -> 95 bytes
-rw-r--r--html/img/disclosure.pngbin0 -> 115 bytes
-rw-r--r--html/img/disclosure_open.pngbin0 -> 131 bytes
-rw-r--r--html/img/library_background.pngbin0 -> 119 bytes
-rw-r--r--html/img/title_background.pngbin0 -> 101 bytes
-rw-r--r--html/index.html86
-rw-r--r--index.html2
16 files changed, 11454 insertions, 0 deletions
diff --git a/html/Categories/FMDatabase+FMDatabaseAdditions.html b/html/Categories/FMDatabase+FMDatabaseAdditions.html
new file mode 100644
index 0000000..8800b02
--- /dev/null
+++ b/html/Categories/FMDatabase+FMDatabaseAdditions.html
@@ -0,0 +1,1455 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>FMDatabase(FMDatabaseAdditions) Category Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">FMDB </a></h1>
+ <a id="developerHome" href="../index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMDatabase(FMDatabaseAdditions) Category Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/applicationID">&nbsp;&nbsp;&nbsp;&nbsp;- applicationID</option>
+
+ <option value="//api/name/applicationIDString">&nbsp;&nbsp;&nbsp;&nbsp;- applicationIDString</option>
+
+ <option value="//api/name/boolForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- boolForQuery:</option>
+
+ <option value="//api/name/columnExists:columnName:">&nbsp;&nbsp;&nbsp;&nbsp;- columnExists:columnName:</option>
+
+ <option value="//api/name/columnExists:inTableWithName:">&nbsp;&nbsp;&nbsp;&nbsp;- columnExists:inTableWithName:</option>
+
+ <option value="//api/name/dataForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- dataForQuery:</option>
+
+ <option value="//api/name/dateForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- dateForQuery:</option>
+
+ <option value="//api/name/doubleForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- doubleForQuery:</option>
+
+ <option value="//api/name/getSchema">&nbsp;&nbsp;&nbsp;&nbsp;- getSchema</option>
+
+ <option value="//api/name/getTableSchema:">&nbsp;&nbsp;&nbsp;&nbsp;- getTableSchema:</option>
+
+ <option value="//api/name/intForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- intForQuery:</option>
+
+ <option value="//api/name/longForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- longForQuery:</option>
+
+ <option value="//api/name/setApplicationID:">&nbsp;&nbsp;&nbsp;&nbsp;- setApplicationID:</option>
+
+ <option value="//api/name/setApplicationIDString:">&nbsp;&nbsp;&nbsp;&nbsp;- setApplicationIDString:</option>
+
+ <option value="//api/name/stringForQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- stringForQuery:</option>
+
+ <option value="//api/name/tableExists:">&nbsp;&nbsp;&nbsp;&nbsp;- tableExists:</option>
+
+ <option value="//api/name/validateSQL:error:">&nbsp;&nbsp;&nbsp;&nbsp;- validateSQL:error:</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Return results of SQL to variable">Return results of SQL to variable</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Schema related operations">Schema related operations</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Application identifier tasks">Application identifier tasks</a></span></li>
+
+</ul></li>
+
+
+
+
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/applicationID">applicationID</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/applicationIDString">applicationIDString</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/boolForQuery:">boolForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnExists:columnName:">columnExists:columnName:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnExists:inTableWithName:">columnExists:inTableWithName:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dataForQuery:">dataForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dateForQuery:">dateForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/doubleForQuery:">doubleForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getSchema">getSchema</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getTableSchema:">getTableSchema:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/intForQuery:">intForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longForQuery:">longForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setApplicationID:">setApplicationID:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setApplicationIDString:">setApplicationIDString:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stringForQuery:">stringForQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tableExists:">tableExists:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/validateSQL:error:">validateSQL:error:</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="FMDatabase(FMDatabaseAdditions) Category Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMDatabase(FMDatabaseAdditions) Category Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">FMDatabaseAdditions.h<br />FMDatabaseAdditions.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>Category of additions for <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> class.</p>
+
+<h3>See also</h3>
+
+<ul>
+<li><a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a></li>
+</ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Return results of SQL to variable" name="task_Return results of SQL to variable"></a>
+ <h3 class="subsubtitle task-title">Return results of SQL to variable</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/intForQuery:">&ndash;&nbsp;intForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>int</code> value for query</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/longForQuery:">&ndash;&nbsp;longForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>long</code> value for query</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/boolForQuery:">&ndash;&nbsp;boolForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>BOOL</code> value for query</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/doubleForQuery:">&ndash;&nbsp;doubleForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>double</code> value for query</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/stringForQuery:">&ndash;&nbsp;stringForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>NSString</code> value for query</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dataForQuery:">&ndash;&nbsp;dataForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>NSData</code> value for query</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dateForQuery:">&ndash;&nbsp;dateForQuery:</a></code>
+ <span class="tooltip"><p>Return <code>NSDate</code> value for query</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Schema related operations" name="task_Schema related operations"></a>
+ <h3 class="subsubtitle task-title">Schema related operations</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/tableExists:">&ndash;&nbsp;tableExists:</a></code>
+ <span class="tooltip"><p>Does table exist in database?</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/getSchema">&ndash;&nbsp;getSchema</a></code>
+ <span class="tooltip"><p>The schema of the database.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/getTableSchema:">&ndash;&nbsp;getTableSchema:</a></code>
+ <span class="tooltip"><p>The schema of the database.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnExists:inTableWithName:">&ndash;&nbsp;columnExists:inTableWithName:</a></code>
+ <span class="tooltip"><p>Test to see if particular column exists for particular table in database</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnExists:columnName:">&ndash;&nbsp;columnExists:columnName:</a></code>
+ <span class="tooltip"><p>Test to see if particular column exists for particular table in database</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/validateSQL:error:">&ndash;&nbsp;validateSQL:error:</a></code>
+ <span class="tooltip"><p>Validate SQL statement</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Application identifier tasks" name="task_Application identifier tasks"></a>
+ <h3 class="subsubtitle task-title">Application identifier tasks</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/applicationID">&ndash;&nbsp;applicationID</a></code>
+ <span class="tooltip"><p>Retrieve application ID</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/setApplicationID:">&ndash;&nbsp;setApplicationID:</a></code>
+ <span class="tooltip"><p>Set the application ID</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/applicationIDString">&ndash;&nbsp;applicationIDString</a></code>
+ <span class="tooltip"><p>Retrieve application ID string</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/setApplicationIDString:">&ndash;&nbsp;setApplicationIDString:</a></code>
+ <span class="tooltip"><p>Set the application ID string</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/applicationID" title="applicationID"></a>
+ <h3 class="subsubtitle method-title">applicationID</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Retrieve application ID</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (uint32_t)applicationID</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>uint32_t</code> numeric value of the application ID.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/setApplicationID:">- setApplicationID:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/applicationIDString" title="applicationIDString"></a>
+ <h3 class="subsubtitle method-title">applicationIDString</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Retrieve application ID string</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)applicationIDString</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>NSString</code> value of the application ID.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/setApplicationIDString:">- setApplicationIDString:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/boolForQuery:" title="boolForQuery:"></a>
+ <h3 class="subsubtitle method-title">boolForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>BOOL</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)boolForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>BOOL</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnExists:columnName:" title="columnExists:columnName:"></a>
+ <h3 class="subsubtitle method-title">columnExists:columnName:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Test to see if particular column exists for particular table in database</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)columnExists:(NSString *)<em>tableName</em> columnName:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>tableName</em></dt>
+ <dd><p>The name of the table.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p>The name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if column exists in table in question; <code>NO</code> otherwise.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> Deprecated - use <a href="#//api/name/columnExists:inTableWithName:"><code>columnExists:inTableWithName:</code></a> instead.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/columnExists:inTableWithName:">- columnExists:inTableWithName:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnExists:inTableWithName:" title="columnExists:inTableWithName:"></a>
+ <h3 class="subsubtitle method-title">columnExists:inTableWithName:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Test to see if particular column exists for particular table in database</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)columnExists:(NSString *)<em>columnName</em> inTableWithName:(NSString *)<em>tableName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p>The name of the column.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>tableName</em></dt>
+ <dd><p>The name of the table.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if column exists in table in question; <code>NO</code> otherwise.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dataForQuery:" title="dataForQuery:"></a>
+ <h3 class="subsubtitle method-title">dataForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>NSData</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSData *)dataForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSData</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dateForQuery:" title="dateForQuery:"></a>
+ <h3 class="subsubtitle method-title">dateForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>NSDate</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSDate *)dateForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSDate</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/doubleForQuery:" title="doubleForQuery:"></a>
+ <h3 class="subsubtitle method-title">doubleForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>double</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (double)doubleForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>double</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/getSchema" title="getSchema"></a>
+ <h3 class="subsubtitle method-title">getSchema</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>The schema of the database.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (FMResultSet *)getSchema</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>FMResultSet</code> of schema; <code>nil</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This will be the schema for the entire database. For each entity, each row of the result set will include the following fields:</p>
+
+<ul>
+<li><code>type</code> - The type of entity (e.g. table, index, view, or trigger)</li>
+<li><code>name</code> - The name of the object</li>
+<li><code>tbl_name</code> - The name of the table to which the object references</li>
+<li><code>rootpage</code> - The page number of the root b-tree page for tables and indices</li>
+<li><code>sql</code> - The SQL that created the entity</li>
+</ul>
+
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite.org/fileformat.html">SQLite File Format</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/getTableSchema:" title="getTableSchema:"></a>
+ <h3 class="subsubtitle method-title">getTableSchema:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>The schema of the database.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (FMResultSet *)getTableSchema:(NSString *)<em>tableName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>tableName</em></dt>
+ <dd><p>The name of the table for whom the schema will be returned.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>FMResultSet</code> of schema; <code>nil</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This will be the schema for a particular table as report by SQLite <code>PRAGMA</code>, for example:</p>
+
+<pre><code>PRAGMA table_info('employees')
+</code></pre>
+
+<p>This will report:</p>
+
+<ul>
+<li><code>cid</code> - The column ID number</li>
+<li><code>name</code> - The name of the column</li>
+<li><code>type</code> - The data type specified for the column</li>
+<li><code>notnull</code> - whether the field is defined as NOT NULL (i.e. values required)</li>
+<li><code>dflt_value</code> - The default value for the column</li>
+<li><code>pk</code> - Whether the field is part of the primary key of the table</li>
+</ul>
+
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite.org/pragma.html#pragma_table_info">table_info</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/intForQuery:" title="intForQuery:"></a>
+ <h3 class="subsubtitle method-title">intForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>int</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)intForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>int</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/longForQuery:" title="longForQuery:"></a>
+ <h3 class="subsubtitle method-title">longForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>long</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (long)longForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>long</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/setApplicationID:" title="setApplicationID:"></a>
+ <h3 class="subsubtitle method-title">setApplicationID:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Set the application ID</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)setApplicationID:(uint32_t)<em>appID</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>appID</em></dt>
+ <dd><p>The <code>uint32_t</code> numeric value of the application ID.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/applicationID">- applicationID</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/setApplicationIDString:" title="setApplicationIDString:"></a>
+ <h3 class="subsubtitle method-title">setApplicationIDString:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Set the application ID string</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)setApplicationIDString:(NSString *)<em>string</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>string</em></dt>
+ <dd><p>The <code>NSString</code> value of the application ID.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/applicationIDString">- applicationIDString</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/stringForQuery:" title="stringForQuery:"></a>
+ <h3 class="subsubtitle method-title">stringForQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return <code>NSString</code> value for query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)stringForQuery:(NSString *)<em>query</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>query</em></dt>
+ <dd><p>The SQL query to be performed.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>A list of parameters that will be bound to the <code>?</code> placeholders in the SQL query.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSString</code> value.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/tableExists:" title="tableExists:"></a>
+ <h3 class="subsubtitle method-title">tableExists:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Does table exist in database?</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)tableExists:(NSString *)<em>tableName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>tableName</em></dt>
+ <dd><p>The name of the table being looked for.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if table found; <code>NO</code> if not found.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/validateSQL:error:" title="validateSQL:error:"></a>
+ <h3 class="subsubtitle method-title">validateSQL:error:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Validate SQL statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)validateSQL:(NSString *)<em>sql</em> error:(NSError **)<em>error</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SQL statement being validated.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>error</em></dt>
+ <dd><p>This is a pointer to a <code>NSError</code> object that will receive the autoreleased <code>NSError</code> object if there was any error. If this is <code>nil</code>, no <code>NSError</code> result will be returned.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if validation succeeded without incident; <code>NO</code> otherwise.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This validates SQL statement by performing <code>sqlite3_prepare_v2</code>, but not returning the results, but instead immediately calling <code>sqlite3_finalize</code>.</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseAdditions.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/Classes/FMDatabase.html b/html/Classes/FMDatabase.html
new file mode 100644
index 0000000..7ded183
--- /dev/null
+++ b/html/Classes/FMDatabase.html
@@ -0,0 +1,4217 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>FMDatabase Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">FMDB </a></h1>
+ <a id="developerHome" href="../index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMDatabase Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+ <option value="properties">Properties</option>
+
+ <option value="//api/name/busyRetryTimeout">&nbsp;&nbsp;&nbsp;&nbsp;busyRetryTimeout</option>
+
+ <option value="//api/name/cachedStatements">&nbsp;&nbsp;&nbsp;&nbsp;cachedStatements</option>
+
+ <option value="//api/name/checkedOut">&nbsp;&nbsp;&nbsp;&nbsp;checkedOut</option>
+
+ <option value="//api/name/crashOnErrors">&nbsp;&nbsp;&nbsp;&nbsp;crashOnErrors</option>
+
+ <option value="//api/name/logsErrors">&nbsp;&nbsp;&nbsp;&nbsp;logsErrors</option>
+
+ <option value="//api/name/traceExecution">&nbsp;&nbsp;&nbsp;&nbsp;traceExecution</option>
+
+
+
+
+ <option value="class_methods">Class Methods</option>
+
+ <option value="//api/name/databaseWithPath:">&nbsp;&nbsp;&nbsp;&nbsp;+ databaseWithPath:</option>
+
+ <option value="//api/name/isSQLiteThreadSafe">&nbsp;&nbsp;&nbsp;&nbsp;+ isSQLiteThreadSafe</option>
+
+ <option value="//api/name/sqliteLibVersion">&nbsp;&nbsp;&nbsp;&nbsp;+ sqliteLibVersion</option>
+
+ <option value="//api/name/storeableDateFormat:">&nbsp;&nbsp;&nbsp;&nbsp;+ storeableDateFormat:</option>
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/beginDeferredTransaction">&nbsp;&nbsp;&nbsp;&nbsp;- beginDeferredTransaction</option>
+
+ <option value="//api/name/beginTransaction">&nbsp;&nbsp;&nbsp;&nbsp;- beginTransaction</option>
+
+ <option value="//api/name/changes">&nbsp;&nbsp;&nbsp;&nbsp;- changes</option>
+
+ <option value="//api/name/clearCachedStatements">&nbsp;&nbsp;&nbsp;&nbsp;- clearCachedStatements</option>
+
+ <option value="//api/name/close">&nbsp;&nbsp;&nbsp;&nbsp;- close</option>
+
+ <option value="//api/name/closeOpenResultSets">&nbsp;&nbsp;&nbsp;&nbsp;- closeOpenResultSets</option>
+
+ <option value="//api/name/commit">&nbsp;&nbsp;&nbsp;&nbsp;- commit</option>
+
+ <option value="//api/name/databasePath">&nbsp;&nbsp;&nbsp;&nbsp;- databasePath</option>
+
+ <option value="//api/name/dateFromString:">&nbsp;&nbsp;&nbsp;&nbsp;- dateFromString:</option>
+
+ <option value="//api/name/executeQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- executeQuery:</option>
+
+ <option value="//api/name/executeQuery:withArgumentsInArray:">&nbsp;&nbsp;&nbsp;&nbsp;- executeQuery:withArgumentsInArray:</option>
+
+ <option value="//api/name/executeQuery:withParameterDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- executeQuery:withParameterDictionary:</option>
+
+ <option value="//api/name/executeQueryWithFormat:">&nbsp;&nbsp;&nbsp;&nbsp;- executeQueryWithFormat:</option>
+
+ <option value="//api/name/executeUpdate:">&nbsp;&nbsp;&nbsp;&nbsp;- executeUpdate:</option>
+
+ <option value="//api/name/executeUpdate:withArgumentsInArray:">&nbsp;&nbsp;&nbsp;&nbsp;- executeUpdate:withArgumentsInArray:</option>
+
+ <option value="//api/name/executeUpdate:withParameterDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- executeUpdate:withParameterDictionary:</option>
+
+ <option value="//api/name/executeUpdateWithFormat:">&nbsp;&nbsp;&nbsp;&nbsp;- executeUpdateWithFormat:</option>
+
+ <option value="//api/name/goodConnection">&nbsp;&nbsp;&nbsp;&nbsp;- goodConnection</option>
+
+ <option value="//api/name/hadError">&nbsp;&nbsp;&nbsp;&nbsp;- hadError</option>
+
+ <option value="//api/name/hasDateFormatter">&nbsp;&nbsp;&nbsp;&nbsp;- hasDateFormatter</option>
+
+ <option value="//api/name/hasOpenResultSets">&nbsp;&nbsp;&nbsp;&nbsp;- hasOpenResultSets</option>
+
+ <option value="//api/name/inSavePoint:">&nbsp;&nbsp;&nbsp;&nbsp;- inSavePoint:</option>
+
+ <option value="//api/name/inTransaction">&nbsp;&nbsp;&nbsp;&nbsp;- inTransaction</option>
+
+ <option value="//api/name/initWithPath:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithPath:</option>
+
+ <option value="//api/name/lastError">&nbsp;&nbsp;&nbsp;&nbsp;- lastError</option>
+
+ <option value="//api/name/lastErrorCode">&nbsp;&nbsp;&nbsp;&nbsp;- lastErrorCode</option>
+
+ <option value="//api/name/lastErrorMessage">&nbsp;&nbsp;&nbsp;&nbsp;- lastErrorMessage</option>
+
+ <option value="//api/name/lastInsertRowId">&nbsp;&nbsp;&nbsp;&nbsp;- lastInsertRowId</option>
+
+ <option value="//api/name/makeFunctionNamed:maximumArguments:withBlock:">&nbsp;&nbsp;&nbsp;&nbsp;- makeFunctionNamed:maximumArguments:withBlock:</option>
+
+ <option value="//api/name/open">&nbsp;&nbsp;&nbsp;&nbsp;- open</option>
+
+ <option value="//api/name/openWithFlags:">&nbsp;&nbsp;&nbsp;&nbsp;- openWithFlags:</option>
+
+ <option value="//api/name/rekey:">&nbsp;&nbsp;&nbsp;&nbsp;- rekey:</option>
+
+ <option value="//api/name/rekeyWithData:">&nbsp;&nbsp;&nbsp;&nbsp;- rekeyWithData:</option>
+
+ <option value="//api/name/releaseSavePointWithName:error:">&nbsp;&nbsp;&nbsp;&nbsp;- releaseSavePointWithName:error:</option>
+
+ <option value="//api/name/rollback">&nbsp;&nbsp;&nbsp;&nbsp;- rollback</option>
+
+ <option value="//api/name/rollbackToSavePointWithName:error:">&nbsp;&nbsp;&nbsp;&nbsp;- rollbackToSavePointWithName:error:</option>
+
+ <option value="//api/name/setDateFormat:">&nbsp;&nbsp;&nbsp;&nbsp;- setDateFormat:</option>
+
+ <option value="//api/name/setKey:">&nbsp;&nbsp;&nbsp;&nbsp;- setKey:</option>
+
+ <option value="//api/name/setKeyWithData:">&nbsp;&nbsp;&nbsp;&nbsp;- setKeyWithData:</option>
+
+ <option value="//api/name/setShouldCacheStatements:">&nbsp;&nbsp;&nbsp;&nbsp;- setShouldCacheStatements:</option>
+
+ <option value="//api/name/shouldCacheStatements">&nbsp;&nbsp;&nbsp;&nbsp;- shouldCacheStatements</option>
+
+ <option value="//api/name/sqliteHandle">&nbsp;&nbsp;&nbsp;&nbsp;- sqliteHandle</option>
+
+ <option value="//api/name/startSavePointWithName:error:">&nbsp;&nbsp;&nbsp;&nbsp;- startSavePointWithName:error:</option>
+
+ <option value="//api/name/stringFromDate:">&nbsp;&nbsp;&nbsp;&nbsp;- stringFromDate:</option>
+
+ <option value="//api/name/update:withErrorAndBindings:">&nbsp;&nbsp;&nbsp;&nbsp;- update:withErrorAndBindings:</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Initialization">Initialization</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Opening and closing database">Opening and closing database</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Perform updates">Perform updates</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Retrieving results">Retrieving results</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Transactions">Transactions</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Cached statements and result sets">Cached statements and result sets</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Encryption methods">Encryption methods</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_General inquiry methods">General inquiry methods</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Retrieving error codes">Retrieving error codes</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Save points">Save points</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_SQLite library status">SQLite library status</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Make SQL function">Make SQL function</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Date formatter">Date formatter</a></span></li>
+
+</ul></li>
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/busyRetryTimeout">busyRetryTimeout</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/cachedStatements">cachedStatements</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/checkedOut">checkedOut</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/crashOnErrors">crashOnErrors</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/logsErrors">logsErrors</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/traceExecution">traceExecution</a></span></li>
+
+</ul></li>
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/databaseWithPath:">databaseWithPath:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/isSQLiteThreadSafe">isSQLiteThreadSafe</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sqliteLibVersion">sqliteLibVersion</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/storeableDateFormat:">storeableDateFormat:</a></span></li>
+
+</ul></li>
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/beginDeferredTransaction">beginDeferredTransaction</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/beginTransaction">beginTransaction</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/changes">changes</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/clearCachedStatements">clearCachedStatements</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/close">close</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/closeOpenResultSets">closeOpenResultSets</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/commit">commit</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/databasePath">databasePath</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dateFromString:">dateFromString:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeQuery:">executeQuery:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeQuery:withArgumentsInArray:">executeQuery:withArgumentsInArray:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeQuery:withParameterDictionary:">executeQuery:withParameterDictionary:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeQueryWithFormat:">executeQueryWithFormat:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeUpdate:">executeUpdate:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeUpdate:withArgumentsInArray:">executeUpdate:withArgumentsInArray:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeUpdate:withParameterDictionary:">executeUpdate:withParameterDictionary:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/executeUpdateWithFormat:">executeUpdateWithFormat:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/goodConnection">goodConnection</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hadError">hadError</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hasDateFormatter">hasDateFormatter</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hasOpenResultSets">hasOpenResultSets</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inSavePoint:">inSavePoint:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inTransaction">inTransaction</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithPath:">initWithPath:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/lastError">lastError</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/lastErrorCode">lastErrorCode</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/lastErrorMessage">lastErrorMessage</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/lastInsertRowId">lastInsertRowId</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/makeFunctionNamed:maximumArguments:withBlock:">makeFunctionNamed:maximumArguments:withBlock:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/open">open</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/openWithFlags:">openWithFlags:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rekey:">rekey:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rekeyWithData:">rekeyWithData:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/releaseSavePointWithName:error:">releaseSavePointWithName:error:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rollback">rollback</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rollbackToSavePointWithName:error:">rollbackToSavePointWithName:error:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setDateFormat:">setDateFormat:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setKey:">setKey:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setKeyWithData:">setKeyWithData:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setShouldCacheStatements:">setShouldCacheStatements:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shouldCacheStatements">shouldCacheStatements</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sqliteHandle">sqliteHandle</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/startSavePointWithName:error:">startSavePointWithName:error:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stringFromDate:">stringFromDate:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/update:withErrorAndBindings:">update:withErrorAndBindings:</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="FMDatabase Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMDatabase Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">FMDatabase.h<br />FMDatabase.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>A SQLite (<a href="http://sqlite.org/">http://sqlite.org/</a>) Objective-C wrapper.</p>
+
+<h3>Usage</h3>
+
+<p>The three main classes in FMDB are:</p>
+
+<ul>
+<li><code>FMDatabase</code> - Represents a single SQLite database. Used for executing SQL statements.</li>
+<li><a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> - Represents the results of executing a query on an <code>FMDatabase</code>.</li>
+<li><a href="../Classes/FMDatabaseQueue.html"><code>FMDatabaseQueue</code></a> - If you want to perform queries and updates on multiple threads, you&rsquo;ll want to use this class.</li>
+</ul>
+
+
+<h3>See also</h3>
+
+<ul>
+<li><a href="../Classes/FMDatabasePool.html"><code>FMDatabasePool</code></a> - A pool of <code>FMDatabase</code> objects.</li>
+<li><a href="../Classes/FMStatement.html"><code>FMStatement</code></a> - A wrapper for <code>sqlite_stmt</code>.</li>
+</ul>
+
+
+<h3>External links</h3>
+
+<ul>
+<li><a href="https://github.com/ccgus/fmdb">FMDB on GitHub</a> including introductory documentation</li>
+<li><a href="http://sqlite.org/">SQLite web site</a></li>
+<li><a href="http://groups.google.com/group/fmdb">FMDB mailing list</a></li>
+<li><a href="http://www.sqlite.org/faq.html">SQLite FAQ</a></li>
+</ul>
+<div class="warning"><p><strong>Warning:</strong> Do not instantiate a single <code>FMDatabase</code> object and use it across multiple threads. Instead, use <a href="../Classes/FMDatabaseQueue.html"><code>FMDatabaseQueue</code></a>.</p></div>
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Properties" name="task_Properties"></a>
+ <h3 class="subsubtitle task-title">Properties</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/traceExecution">&nbsp;&nbsp;traceExecution</a></code>
+ <span class="tooltip"><p>Whether should trace execution</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/checkedOut">&nbsp;&nbsp;checkedOut</a></code>
+ <span class="tooltip"><p>Whether checked out or not</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/busyRetryTimeout">&nbsp;&nbsp;busyRetryTimeout</a></code>
+ <span class="tooltip"><p>Busy retry timeout</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/crashOnErrors">&nbsp;&nbsp;crashOnErrors</a></code>
+ <span class="tooltip"><p>Crash on errors</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/logsErrors">&nbsp;&nbsp;logsErrors</a></code>
+ <span class="tooltip"><p>Logs errors</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/cachedStatements">&nbsp;&nbsp;cachedStatements</a></code>
+ <span class="tooltip"><p>Dictionary of cached statements</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li>
+ </ul>
+
+
+ <a title="Initialization" name="task_Initialization"></a>
+ <h3 class="subsubtitle task-title">Initialization</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/databaseWithPath:">+&nbsp;databaseWithPath:</a></code>
+ <span class="tooltip"><p>Create a <code>FMDatabase</code> object.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/initWithPath:">&ndash;&nbsp;initWithPath:</a></code>
+ <span class="tooltip"><p>Initialize a <code>FMDatabase</code> object.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Opening and closing database" name="task_Opening and closing database"></a>
+ <h3 class="subsubtitle task-title">Opening and closing database</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/open">&ndash;&nbsp;open</a></code>
+ <span class="tooltip"><p>Opening a new database connection</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/openWithFlags:">&ndash;&nbsp;openWithFlags:</a></code>
+ <span class="tooltip"><p>Opening a new database connection with flags</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/close">&ndash;&nbsp;close</a></code>
+ <span class="tooltip"><p>Closing a database connection</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/goodConnection">&ndash;&nbsp;goodConnection</a></code>
+ <span class="tooltip"><p>Test to see if we have a good connection to the database.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Perform updates" name="task_Perform updates"></a>
+ <h3 class="subsubtitle task-title">Perform updates</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/update:withErrorAndBindings:">&ndash;&nbsp;update:withErrorAndBindings:</a></code>
+ <span class="tooltip"><p>Execute update statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeUpdate:">&ndash;&nbsp;executeUpdate:</a></code>
+ <span class="tooltip"><p>Execute update statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeUpdateWithFormat:">&ndash;&nbsp;executeUpdateWithFormat:</a></code>
+ <span class="tooltip"><p>Execute update statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeUpdate:withArgumentsInArray:">&ndash;&nbsp;executeUpdate:withArgumentsInArray:</a></code>
+ <span class="tooltip"><p>Execute update statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeUpdate:withParameterDictionary:">&ndash;&nbsp;executeUpdate:withParameterDictionary:</a></code>
+ <span class="tooltip"><p>Execute update statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/lastInsertRowId">&ndash;&nbsp;lastInsertRowId</a></code>
+ <span class="tooltip"><p>Last insert rowid</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/changes">&ndash;&nbsp;changes</a></code>
+ <span class="tooltip"><p>The number of rows changed by prior SQL statement.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Retrieving results" name="task_Retrieving results"></a>
+ <h3 class="subsubtitle task-title">Retrieving results</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeQuery:">&ndash;&nbsp;executeQuery:</a></code>
+ <span class="tooltip"><p>Execute select statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeQueryWithFormat:">&ndash;&nbsp;executeQueryWithFormat:</a></code>
+ <span class="tooltip"><p>Execute select statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeQuery:withArgumentsInArray:">&ndash;&nbsp;executeQuery:withArgumentsInArray:</a></code>
+ <span class="tooltip"><p>Execute select statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/executeQuery:withParameterDictionary:">&ndash;&nbsp;executeQuery:withParameterDictionary:</a></code>
+ <span class="tooltip"><p>Execute select statement</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Transactions" name="task_Transactions"></a>
+ <h3 class="subsubtitle task-title">Transactions</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/beginTransaction">&ndash;&nbsp;beginTransaction</a></code>
+ <span class="tooltip"><p>Begin a transaction</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/beginDeferredTransaction">&ndash;&nbsp;beginDeferredTransaction</a></code>
+ <span class="tooltip"><p>Begin a deferred transaction</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/commit">&ndash;&nbsp;commit</a></code>
+ <span class="tooltip"><p>Commit a transaction</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/rollback">&ndash;&nbsp;rollback</a></code>
+ <span class="tooltip"><p>Rollback a transaction</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inTransaction">&ndash;&nbsp;inTransaction</a></code>
+ <span class="tooltip"><p>Identify whether currently in a transaction or not</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Cached statements and result sets" name="task_Cached statements and result sets"></a>
+ <h3 class="subsubtitle task-title">Cached statements and result sets</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/clearCachedStatements">&ndash;&nbsp;clearCachedStatements</a></code>
+ <span class="tooltip"><p>Clear cached statements</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/closeOpenResultSets">&ndash;&nbsp;closeOpenResultSets</a></code>
+ <span class="tooltip"><p>Close all open result sets</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/hasOpenResultSets">&ndash;&nbsp;hasOpenResultSets</a></code>
+ <span class="tooltip"><p>Whether database has any open result sets</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/shouldCacheStatements">&ndash;&nbsp;shouldCacheStatements</a></code>
+ <span class="tooltip"><p>Return whether should cache statements or not</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/setShouldCacheStatements:">&ndash;&nbsp;setShouldCacheStatements:</a></code>
+ <span class="tooltip"><p>Set whether should cache statements or not</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Encryption methods" name="task_Encryption methods"></a>
+ <h3 class="subsubtitle task-title">Encryption methods</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/setKey:">&ndash;&nbsp;setKey:</a></code>
+ <span class="tooltip"><p>Set encryption key.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/rekey:">&ndash;&nbsp;rekey:</a></code>
+ <span class="tooltip"><p>Reset encryption key</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/setKeyWithData:">&ndash;&nbsp;setKeyWithData:</a></code>
+ <span class="tooltip"><p>Set encryption key using <code>keyData</code>.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/rekeyWithData:">&ndash;&nbsp;rekeyWithData:</a></code>
+ <span class="tooltip"><p>Reset encryption key using <code>keyData</code>.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="General inquiry methods" name="task_General inquiry methods"></a>
+ <h3 class="subsubtitle task-title">General inquiry methods</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/databasePath">&ndash;&nbsp;databasePath</a></code>
+ <span class="tooltip"><p>The path of the database file</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/sqliteHandle">&ndash;&nbsp;sqliteHandle</a></code>
+ <span class="tooltip"><p>The underlying SQLite handle</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Retrieving error codes" name="task_Retrieving error codes"></a>
+ <h3 class="subsubtitle task-title">Retrieving error codes</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/lastErrorMessage">&ndash;&nbsp;lastErrorMessage</a></code>
+ <span class="tooltip"><p>Last error message</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/lastErrorCode">&ndash;&nbsp;lastErrorCode</a></code>
+ <span class="tooltip"><p>Last error code</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/hadError">&ndash;&nbsp;hadError</a></code>
+ <span class="tooltip"><p>Had error</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/lastError">&ndash;&nbsp;lastError</a></code>
+ <span class="tooltip"><p>Last error</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Save points" name="task_Save points"></a>
+ <h3 class="subsubtitle task-title">Save points</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/startSavePointWithName:error:">&ndash;&nbsp;startSavePointWithName:error:</a></code>
+ <span class="tooltip"><p>Start save point</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/releaseSavePointWithName:error:">&ndash;&nbsp;releaseSavePointWithName:error:</a></code>
+ <span class="tooltip"><p>Release save point</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/rollbackToSavePointWithName:error:">&ndash;&nbsp;rollbackToSavePointWithName:error:</a></code>
+ <span class="tooltip"><p>Roll back to save point</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inSavePoint:">&ndash;&nbsp;inSavePoint:</a></code>
+ <span class="tooltip"><p>Start save point</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="SQLite library status" name="task_SQLite library status"></a>
+ <h3 class="subsubtitle task-title">SQLite library status</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/isSQLiteThreadSafe">+&nbsp;isSQLiteThreadSafe</a></code>
+ <span class="tooltip"><p>Test to see if the library is threadsafe</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/sqliteLibVersion">+&nbsp;sqliteLibVersion</a></code>
+ <span class="tooltip"><p>Run-time library version numbers</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Make SQL function" name="task_Make SQL function"></a>
+ <h3 class="subsubtitle task-title">Make SQL function</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/makeFunctionNamed:maximumArguments:withBlock:">&ndash;&nbsp;makeFunctionNamed:maximumArguments:withBlock:</a></code>
+ <span class="tooltip"><p>Adds SQL functions or aggregates or to redefine the behavior of existing SQL functions or aggregates.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Date formatter" name="task_Date formatter"></a>
+ <h3 class="subsubtitle task-title">Date formatter</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/storeableDateFormat:">+&nbsp;storeableDateFormat:</a></code>
+ <span class="tooltip"><p>Generate an <code>NSDateFormatter</code> that won&rsquo;t be broken by permutations of timezones or locales.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/hasDateFormatter">&ndash;&nbsp;hasDateFormatter</a></code>
+ <span class="tooltip"><p>Test whether the database has a date formatter assigned.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/setDateFormat:">&ndash;&nbsp;setDateFormat:</a></code>
+ <span class="tooltip"><p>Set to a date formatter to use string dates with sqlite instead of the default UNIX timestamps.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dateFromString:">&ndash;&nbsp;dateFromString:</a></code>
+ <span class="tooltip"><p>Convert the supplied NSString to NSDate, using the current database formatter.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/stringFromDate:">&ndash;&nbsp;stringFromDate:</a></code>
+ <span class="tooltip"><p>Convert the supplied NSDate to NSString, using the current database formatter.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Properties" name="properties"></a>
+ <h2 class="subtitle subtitle-methods">Properties</h2>
+
+ <div class="section-method">
+ <a name="//api/name/busyRetryTimeout" title="busyRetryTimeout"></a>
+ <h3 class="subsubtitle method-title">busyRetryTimeout</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Busy retry timeout</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) int busyRetryTimeout</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/cachedStatements" title="cachedStatements"></a>
+ <h3 class="subsubtitle method-title">cachedStatements</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Dictionary of cached statements</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, retain) NSMutableDictionary *cachedStatements</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/checkedOut" title="checkedOut"></a>
+ <h3 class="subsubtitle method-title">checkedOut</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Whether checked out or not</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) BOOL checkedOut</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/crashOnErrors" title="crashOnErrors"></a>
+ <h3 class="subsubtitle method-title">crashOnErrors</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Crash on errors</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) BOOL crashOnErrors</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/logsErrors" title="logsErrors"></a>
+ <h3 class="subsubtitle method-title">logsErrors</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Logs errors</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) BOOL logsErrors</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/traceExecution" title="traceExecution"></a>
+ <h3 class="subsubtitle method-title">traceExecution</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Whether should trace execution</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) BOOL traceExecution</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+ <div class="section section-methods">
+ <a title="Class Methods" name="class_methods"></a>
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/databaseWithPath:" title="databaseWithPath:"></a>
+ <h3 class="subsubtitle method-title">databaseWithPath:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Create a <code>FMDatabase</code> object.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (id)databaseWithPath:(NSString *)<em>inPath</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>inPath</em></dt>
+ <dd><p>Path of database file</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>FMDatabase</code> object if successful; <code>nil</code> if failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>An <code>FMDatabase</code> is created with a path to a SQLite database file. This path can be one of these three:</p>
+
+<ol>
+<li>A file system path. The file does not have to exist on disk. If it does not exist, it is created for you.</li>
+<li>An empty string (<code>@""</code>). An empty database is created at a temporary location. This database is deleted with the <code>FMDatabase</code> connection is closed.</li>
+<li><code>nil</code>. An in-memory database is created. This database will be destroyed with the <code>FMDatabase</code> connection is closed.</li>
+</ol>
+
+
+<p>For example, to create/open a database in your Mac OS X <code>tmp</code> folder:</p>
+
+<pre><code>FMDatabase *db = [FMDatabase databaseWithPath:@"/tmp/tmp.db"];
+</code></pre>
+
+<p>Or, in iOS, you might open a database in the app&rsquo;s <code>Documents</code> directory:</p>
+
+<pre><code>NSString *docsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
+NSString *dbPath = [docsPath stringByAppendingPathComponent:@"test.db"];
+FMDatabase *db = [FMDatabase databaseWithPath:dbPath];
+</code></pre>
+
+<p>(For more information on temporary and in-memory databases, read the sqlite documentation on the subject: <a href="http://www.sqlite.org/inmemorydb.html">http://www.sqlite.org/inmemorydb.html</a>)</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/isSQLiteThreadSafe" title="isSQLiteThreadSafe"></a>
+ <h3 class="subsubtitle method-title">isSQLiteThreadSafe</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Test to see if the library is threadsafe</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (BOOL)isSQLiteThreadSafe</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Zero if and only if SQLite was compiled with mutexing code omitted due to the SQLITE_THREADSAFE compile-time option being set to 0.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/threadsafe.html">sqlite3_threadsafe()</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/sqliteLibVersion" title="sqliteLibVersion"></a>
+ <h3 class="subsubtitle method-title">sqliteLibVersion</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Run-time library version numbers</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (NSString *)sqliteLibVersion</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/libversion.html">sqlite3_libversion()</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/storeableDateFormat:" title="storeableDateFormat:"></a>
+ <h3 class="subsubtitle method-title">storeableDateFormat:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Generate an <code>NSDateFormatter</code> that won&rsquo;t be broken by permutations of timezones or locales.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (NSDateFormatter *)storeableDateFormat:(NSString *)<em>format</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>format</em></dt>
+ <dd><p>A valid NSDateFormatter format string.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>A <code>NSDateFormatter</code> that can be used for converting dates to strings and vice versa.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Use this method to generate values to set the dateFormat property.</p>
+
+<p>Example:</p>
+
+<pre><code>myDB.dateFormat = [FMDatabase storeableDateFormat:@"yyyy-MM-dd HH:mm:ss"];
+</code></pre><div class="warning"><p><strong>Warning:</strong> Note that <code>NSDateFormatter</code> is not thread-safe, so the formatter generated by this method should be assigned to only one FMDB instance and should not be used for other purposes.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/hasDateFormatter">- hasDateFormatter</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/setDateFormat:">- setDateFormat:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/dateFromString:">- dateFromString:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/stringFromDate:">- stringFromDate:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/storeableDateFormat:">+ storeableDateFormat:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/beginDeferredTransaction" title="beginDeferredTransaction"></a>
+ <h3 class="subsubtitle method-title">beginDeferredTransaction</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Begin a deferred transaction</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)beginDeferredTransaction</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/commit">- commit</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollback">- rollback</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/beginTransaction">- beginTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/inTransaction">- inTransaction</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/beginTransaction" title="beginTransaction"></a>
+ <h3 class="subsubtitle method-title">beginTransaction</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Begin a transaction</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)beginTransaction</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/commit">- commit</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollback">- rollback</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/beginDeferredTransaction">- beginDeferredTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/inTransaction">- inTransaction</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/changes" title="changes"></a>
+ <h3 class="subsubtitle method-title">changes</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>The number of rows changed by prior SQL statement.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)changes</code></div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This function returns the number of database rows that were changed or inserted or deleted by the most recently completed SQL statement on the database connection specified by the first parameter. Only changes that are directly specified by the INSERT, UPDATE, or DELETE statement are counted.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/changes.html">sqlite3_changes()</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/clearCachedStatements" title="clearCachedStatements"></a>
+ <h3 class="subsubtitle method-title">clearCachedStatements</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Clear cached statements</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)clearCachedStatements</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/close" title="close"></a>
+ <h3 class="subsubtitle method-title">close</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Closing a database connection</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)close</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if success, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/close.html">sqlite3_close()</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/open">- open</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/openWithFlags:">- openWithFlags:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/closeOpenResultSets" title="closeOpenResultSets"></a>
+ <h3 class="subsubtitle method-title">closeOpenResultSets</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Close all open result sets</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)closeOpenResultSets</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/commit" title="commit"></a>
+ <h3 class="subsubtitle method-title">commit</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Commit a transaction</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)commit</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Commit a transaction that was initiated with either <a href="#//api/name/beginTransaction"><code>beginTransaction</code></a> or with <a href="#//api/name/beginDeferredTransaction"><code>beginDeferredTransaction</code></a>.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/beginTransaction">- beginTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/beginDeferredTransaction">- beginDeferredTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollback">- rollback</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/inTransaction">- inTransaction</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/databasePath" title="databasePath"></a>
+ <h3 class="subsubtitle method-title">databasePath</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>The path of the database file</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)databasePath</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>path of database.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dateFromString:" title="dateFromString:"></a>
+ <h3 class="subsubtitle method-title">dateFromString:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Convert the supplied NSString to NSDate, using the current database formatter.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSDate *)dateFromString:(NSString *)<em>s</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>s</em></dt>
+ <dd><p><code>NSString</code> to convert to <code>NSDate</code>.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>nil</code> if no formatter is set.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/hasDateFormatter">- hasDateFormatter</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/setDateFormat:">- setDateFormat:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/dateFromString:">- dateFromString:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/stringFromDate:">- stringFromDate:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/storeableDateFormat:">+ storeableDateFormat:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeQuery:" title="executeQuery:"></a>
+ <h3 class="subsubtitle method-title">executeQuery:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute select statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (FMResultSet *)executeQuery:(NSString *)<em>sql</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SELECT statement to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>Optional parameters to bind to <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>A <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> for the result set upon success; <code>nil</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Executing queries returns an <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> object if successful, and <code>nil</code> upon failure. Like executing updates, there is a variant that accepts an <code>NSError **</code> parameter. Otherwise you should use the <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> and <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> methods to determine why a query failed.</p>
+
+<p>In order to iterate through the results of your query, you use a <code>while()</code> loop. You also need to &ldquo;step&rdquo; (via <a href="../Classes/FMResultSet.html#//api/name/next"><code>[FMResultSet next]</code></a>) from one record to the other.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="../Classes/FMResultSet.html">FMResultSet</a></p></code></li>
+
+ <li><code><p><a href="../Classes/FMResultSet.html#//api/name/next"><code>FMResultSet next</code></a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeQuery:withArgumentsInArray:" title="executeQuery:withArgumentsInArray:"></a>
+ <h3 class="subsubtitle method-title">executeQuery:withArgumentsInArray:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute select statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (FMResultSet *)executeQuery:(NSString *)<em>sql</em> withArgumentsInArray:(NSArray *)<em>arguments</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SELECT statement to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>arguments</em></dt>
+ <dd><p>A <code>NSArray</code> of objects to be used when binding values to the <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>A <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> for the result set upon success; <code>nil</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Executing queries returns an <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> object if successful, and <code>nil</code> upon failure. Like executing updates, there is a variant that accepts an <code>NSError **</code> parameter. Otherwise you should use the <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> and <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> methods to determine why a query failed.</p>
+
+<p>In order to iterate through the results of your query, you use a <code>while()</code> loop. You also need to &ldquo;step&rdquo; (via <a href="../Classes/FMResultSet.html#//api/name/next"><code>[FMResultSet next]</code></a>) from one record to the other.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="../Classes/FMResultSet.html">FMResultSet</a></p></code></li>
+
+ <li><code><p><a href="../Classes/FMResultSet.html#//api/name/next"><code>FMResultSet next</code></a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeQuery:withParameterDictionary:" title="executeQuery:withParameterDictionary:"></a>
+ <h3 class="subsubtitle method-title">executeQuery:withParameterDictionary:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute select statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (FMResultSet *)executeQuery:(NSString *)<em>sql</em> withParameterDictionary:(NSDictionary *)<em>arguments</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SELECT statement to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>arguments</em></dt>
+ <dd><p>A <code>NSDictionary</code> of objects keyed by column names that will be used when binding values to the <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>A <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> for the result set upon success; <code>nil</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Executing queries returns an <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> object if successful, and <code>nil</code> upon failure. Like executing updates, there is a variant that accepts an <code>NSError **</code> parameter. Otherwise you should use the <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> and <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> methods to determine why a query failed.</p>
+
+<p>In order to iterate through the results of your query, you use a <code>while()</code> loop. You also need to &ldquo;step&rdquo; (via <a href="../Classes/FMResultSet.html#//api/name/next"><code>[FMResultSet next]</code></a>) from one record to the other.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="../Classes/FMResultSet.html">FMResultSet</a></p></code></li>
+
+ <li><code><p><a href="../Classes/FMResultSet.html#//api/name/next"><code>FMResultSet next</code></a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeQueryWithFormat:" title="executeQueryWithFormat:"></a>
+ <h3 class="subsubtitle method-title">executeQueryWithFormat:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute select statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (FMResultSet *)executeQueryWithFormat:(NSString *)<em>format</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>format</em></dt>
+ <dd><p>The SQL to be performed, with <code>printf</code>-style escape sequences.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>Optional parameters to bind to use in conjunction with the <code>printf</code>-style escape sequences in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>A <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> for the result set upon success; <code>nil</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Executing queries returns an <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> object if successful, and <code>nil</code> upon failure. Like executing updates, there is a variant that accepts an <code>NSError **</code> parameter. Otherwise you should use the <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> and <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> methods to determine why a query failed.</p>
+
+<p>In order to iterate through the results of your query, you use a <code>while()</code> loop. You also need to &ldquo;step&rdquo; (via <a href="../Classes/FMResultSet.html#//api/name/next"><code>[FMResultSet next]</code></a>) from one record to the other.</p><div class="warning"><p><strong>Warning:</strong> This should be used with great care. Generally, you should use <a href="#//api/name/executeQuery:"><code>executeQuery:</code></a> (with <code>?</code> placeholders) rather than this method.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="../Classes/FMResultSet.html">FMResultSet</a></p></code></li>
+
+ <li><code><p><a href="../Classes/FMResultSet.html#//api/name/next"><code>FMResultSet next</code></a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeUpdate:" title="executeUpdate:"></a>
+ <h3 class="subsubtitle method-title">executeUpdate:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute update statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)executeUpdate:(NSString *)<em>sql</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SQL to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>Optional parameters to bind to <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> upon success; <code>NO</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeUpdate:withArgumentsInArray:" title="executeUpdate:withArgumentsInArray:"></a>
+ <h3 class="subsubtitle method-title">executeUpdate:withArgumentsInArray:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute update statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)executeUpdate:(NSString *)<em>sql</em> withArgumentsInArray:(NSArray *)<em>arguments</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SQL to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>arguments</em></dt>
+ <dd><p>A <code>NSArray</code> of objects to be used when binding values to the <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> upon success; <code>NO</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Any sort of SQL statement which is not a <code>SELECT</code> statement qualifies as an update. This includes <code>CREATE</code>, <code>UPDATE</code>, <code>INSERT</code>, <code>ALTER</code>, <code>COMMIT</code>, <code>BEGIN</code>, <code>DETACH</code>, <code>DELETE</code>, <code>DROP</code>, <code>END</code>, <code>EXPLAIN</code>, <code>VACUUM</code>, and <code>REPLACE</code> statements (plus many more). Basically, if your SQL statement does not begin with <code>SELECT</code>, it is an update statement.</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeUpdate:withParameterDictionary:" title="executeUpdate:withParameterDictionary:"></a>
+ <h3 class="subsubtitle method-title">executeUpdate:withParameterDictionary:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute update statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)executeUpdate:(NSString *)<em>sql</em> withParameterDictionary:(NSDictionary *)<em>arguments</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SQL to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>arguments</em></dt>
+ <dd><p>A <code>NSDictionary</code> of objects keyed by column names that will be used when binding values to the <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> upon success; <code>NO</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Any sort of SQL statement which is not a <code>SELECT</code> statement qualifies as an update. This includes <code>CREATE</code>, <code>UPDATE</code>, <code>INSERT</code>, <code>ALTER</code>, <code>COMMIT</code>, <code>BEGIN</code>, <code>DETACH</code>, <code>DELETE</code>, <code>DROP</code>, <code>END</code>, <code>EXPLAIN</code>, <code>VACUUM</code>, and <code>REPLACE</code> statements (plus many more). Basically, if your SQL statement does not begin with <code>SELECT</code>, it is an update statement.</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/executeUpdateWithFormat:" title="executeUpdateWithFormat:"></a>
+ <h3 class="subsubtitle method-title">executeUpdateWithFormat:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute update statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)executeUpdateWithFormat:(NSString *)<em>format</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>format</em></dt>
+ <dd><p>The SQL to be performed, with <code>printf</code>-style escape sequences.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>Optional parameters to bind to use in conjunction with the <code>printf</code>-style escape sequences in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> upon success; <code>NO</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Any sort of SQL statement which is not a <code>SELECT</code> statement qualifies as an update. This includes <code>CREATE</code>, <code>UPDATE</code>, <code>INSERT</code>, <code>ALTER</code>, <code>COMMIT</code>, <code>BEGIN</code>, <code>DETACH</code>, <code>DELETE</code>, <code>DROP</code>, <code>END</code>, <code>EXPLAIN</code>, <code>VACUUM</code>, and <code>REPLACE</code> statements (plus many more). Basically, if your SQL statement does not begin with <code>SELECT</code>, it is an update statement.</p><div class="warning"><p><strong>Warning:</strong> This should be used with great care. Generally, you should use <a href="#//api/name/executeUpdate:"><code>executeUpdate:</code></a> (with <code>?</code> placeholders) rather than this method.</p></div>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/goodConnection" title="goodConnection"></a>
+ <h3 class="subsubtitle method-title">goodConnection</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Test to see if we have a good connection to the database.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)goodConnection</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if everything succeeds, <code>NO</code> on failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This will confirm whether:</p>
+
+<ul>
+<li>is database open</li>
+<li>if open, it will try a simple SELECT statement and confirm that it succeeds.</li>
+</ul>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/hadError" title="hadError"></a>
+ <h3 class="subsubtitle method-title">hadError</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Had error</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)hadError</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if there was an error, <code>NO</code> if no error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/lastError">- lastError</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastErrorCode">- lastErrorCode</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastErrorMessage">- lastErrorMessage</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/hasDateFormatter" title="hasDateFormatter"></a>
+ <h3 class="subsubtitle method-title">hasDateFormatter</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Test whether the database has a date formatter assigned.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)hasDateFormatter</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if there is a date formatter; <code>NO</code> if not.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/hasDateFormatter">- hasDateFormatter</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/setDateFormat:">- setDateFormat:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/dateFromString:">- dateFromString:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/stringFromDate:">- stringFromDate:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/storeableDateFormat:">+ storeableDateFormat:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/hasOpenResultSets" title="hasOpenResultSets"></a>
+ <h3 class="subsubtitle method-title">hasOpenResultSets</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Whether database has any open result sets</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)hasOpenResultSets</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if there are open result sets; <code>NO</code> if not.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inSavePoint:" title="inSavePoint:"></a>
+ <h3 class="subsubtitle method-title">inSavePoint:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Start save point</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSError *)inSavePoint:(void ( ^ ) ( BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>Block of code to perform from within save point.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/startSavePointWithName:error:">- startSavePointWithName:error:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/releaseSavePointWithName:error:">- releaseSavePointWithName:error:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollbackToSavePointWithName:error:">- rollbackToSavePointWithName:error:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inTransaction" title="inTransaction"></a>
+ <h3 class="subsubtitle method-title">inTransaction</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Identify whether currently in a transaction or not</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)inTransaction</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if currently within transaction; <code>NO</code> if not.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/beginTransaction">- beginTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/beginDeferredTransaction">- beginDeferredTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/commit">- commit</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollback">- rollback</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/initWithPath:" title="initWithPath:"></a>
+ <h3 class="subsubtitle method-title">initWithPath:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Initialize a <code>FMDatabase</code> object.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)initWithPath:(NSString *)<em>inPath</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>inPath</em></dt>
+ <dd><p>Path of database file</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>FMDatabase</code> object if successful; <code>nil</code> if failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>An <code>FMDatabase</code> is created with a path to a SQLite database file. This path can be one of these three:</p>
+
+<ol>
+<li>A file system path. The file does not have to exist on disk. If it does not exist, it is created for you.</li>
+<li>An empty string (<code>@""</code>). An empty database is created at a temporary location. This database is deleted with the <code>FMDatabase</code> connection is closed.</li>
+<li><code>nil</code>. An in-memory database is created. This database will be destroyed with the <code>FMDatabase</code> connection is closed.</li>
+</ol>
+
+
+<p>For example, to create/open a database in your Mac OS X <code>tmp</code> folder:</p>
+
+<pre><code>FMDatabase *db = [FMDatabase databaseWithPath:@"/tmp/tmp.db"];
+</code></pre>
+
+<p>Or, in iOS, you might open a database in the app&rsquo;s <code>Documents</code> directory:</p>
+
+<pre><code>NSString *docsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
+NSString *dbPath = [docsPath stringByAppendingPathComponent:@"test.db"];
+FMDatabase *db = [FMDatabase databaseWithPath:dbPath];
+</code></pre>
+
+<p>(For more information on temporary and in-memory databases, read the sqlite documentation on the subject: <a href="http://www.sqlite.org/inmemorydb.html">http://www.sqlite.org/inmemorydb.html</a>)</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/lastError" title="lastError"></a>
+ <h3 class="subsubtitle method-title">lastError</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Last error</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSError *)lastError</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSError</code> representing the last error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/lastErrorCode">- lastErrorCode</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastErrorMessage">- lastErrorMessage</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/lastErrorCode" title="lastErrorCode"></a>
+ <h3 class="subsubtitle method-title">lastErrorCode</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Last error code</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)lastErrorCode</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Integer value of the last error code.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Returns the numeric result code or extended result code for the most recent failed SQLite API call associated with a database connection. If a prior API call failed but the most recent API call succeeded, this return value is undefined.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/errcode.html">sqlite3_errcode()</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastErrorMessage">- lastErrorMessage</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastError">- lastError</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/lastErrorMessage" title="lastErrorMessage"></a>
+ <h3 class="subsubtitle method-title">lastErrorMessage</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Last error message</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)lastErrorMessage</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSString</code> of the last error message.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Returns the English-language text that describes the most recent failed SQLite API call associated with a database connection. If a prior API call failed but the most recent API call succeeded, this return value is undefined.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/errcode.html">sqlite3_errmsg()</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastErrorCode">- lastErrorCode</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/lastError">- lastError</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/lastInsertRowId" title="lastInsertRowId"></a>
+ <h3 class="subsubtitle method-title">lastInsertRowId</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Last insert rowid</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (sqlite_int64)lastInsertRowId</code></div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Each entry in an SQLite table has a unique 64-bit signed integer key called the &ldquo;rowid&rdquo;. The rowid is always available as an undeclared column named <code>ROWID</code>, <code>OID</code>, or <code>_ROWID_</code> as long as those names are not also used by explicitly declared columns. If the table has a column of type <code>INTEGER PRIMARY KEY</code> then that column is another alias for the rowid.</p>
+
+<p>This routine returns the rowid of the most recent successful <code>INSERT</code> into the database from the database connection in the first argument. As of SQLite version 3.7.7, this routines records the last insert rowid of both ordinary tables and virtual tables. If no successful <code>INSERT</code>s have ever occurred on that database connection, zero is returned.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/last_insert_rowid.html">sqlite3_last_insert_rowid()</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/makeFunctionNamed:maximumArguments:withBlock:" title="makeFunctionNamed:maximumArguments:withBlock:"></a>
+ <h3 class="subsubtitle method-title">makeFunctionNamed:maximumArguments:withBlock:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Adds SQL functions or aggregates or to redefine the behavior of existing SQL functions or aggregates.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)makeFunctionNamed:(NSString *)<em>name</em> maximumArguments:(int)<em>count</em> withBlock:(void ( ^ ) ( sqlite3_context *context , int argc , sqlite3_value **argv ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>name</em></dt>
+ <dd><p>Name of function</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>count</em></dt>
+ <dd><p>Maximum number of parameters</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The block of code for the function</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>For example:</p>
+
+<pre><code>[queue inDatabase:^(FMDatabase *adb) {
+
+ [adb executeUpdate:@"create table ftest (foo text)"];
+ [adb executeUpdate:@"insert into ftest values ('hello')"];
+ [adb executeUpdate:@"insert into ftest values ('hi')"];
+ [adb executeUpdate:@"insert into ftest values ('not h!')"];
+ [adb executeUpdate:@"insert into ftest values ('definitely not h!')"];
+
+ [adb makeFunctionNamed:@"StringStartsWithH" maximumArguments:1 withBlock:^(sqlite3_context *context, int aargc, sqlite3_value **aargv) {
+ if (sqlite3_value_type(aargv[0]) == SQLITE_TEXT) {
+ @autoreleasepool {
+ const char *c = (const char *)sqlite3_value_text(aargv[0]);
+ NSString *s = [NSString stringWithUTF8String:c];
+ sqlite3_result_int(context, [s hasPrefix:@"h"]);
+ }
+ }
+ else {
+ NSLog(@"Unknown formart for StringStartsWithH (%d) %s:%d", sqlite3_value_type(aargv[0]), __FUNCTION__, __LINE__);
+ sqlite3_result_null(context);
+ }
+ }];
+
+ int rowCount = 0;
+ FMResultSet *ars = [adb executeQuery:@"select * from ftest where StringStartsWithH(foo)"];
+ while ([ars next]) {
+ rowCount++;
+ NSLog(@"Does %@ start with 'h'?", [rs stringForColumnIndex:0]);
+ }
+ FMDBQuickCheck(rowCount == 2);
+}];
+</code></pre>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/create_function.html">sqlite3_create_function()</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/open" title="open"></a>
+ <h3 class="subsubtitle method-title">open</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Opening a new database connection</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)open</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if successful, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>The database is opened for reading and writing, and is created if it does not already exist.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/open.html">sqlite3_open()</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/openWithFlags:">- openWithFlags:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/close">- close</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/openWithFlags:" title="openWithFlags:"></a>
+ <h3 class="subsubtitle method-title">openWithFlags:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Opening a new database connection with flags</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)openWithFlags:(int)<em>flags</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>flags</em></dt>
+ <dd><p>one of the following three values, optionally combined with the <code>SQLITE_OPEN_NOMUTEX</code>, <code>SQLITE_OPEN_FULLMUTEX</code>, <code>SQLITE_OPEN_SHAREDCACHE</code>, <code>SQLITE_OPEN_PRIVATECACHE</code>, and/or <code>SQLITE_OPEN_URI</code> flags:</p>
+
+<p><code>SQLITE_OPEN_READONLY</code></p>
+
+<p>The database is opened in read-only mode. If the database does not already exist, an error is returned.</p>
+
+<p><code>SQLITE_OPEN_READWRITE</code></p>
+
+<p>The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.</p>
+
+<p><code>SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE</code></p>
+
+<p>The database is opened for reading and writing, and is created if it does not already exist. This is the behavior that is always used for <code>open</code> method.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if successful, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://sqlite.org/c3ref/open.html">sqlite3_open_v2()</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/open">- open</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/close">- close</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/rekey:" title="rekey:"></a>
+ <h3 class="subsubtitle method-title">rekey:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Reset encryption key</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)rekey:(NSString *)<em>key</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>key</em></dt>
+ <dd><p>The key to be used.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if success, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> You need to have purchased the sqlite encryption extensions for this method to work.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite-encrypt.com/develop-guide.htm">http://www.sqlite-encrypt.com/develop-guide.htm</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/rekeyWithData:" title="rekeyWithData:"></a>
+ <h3 class="subsubtitle method-title">rekeyWithData:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Reset encryption key using <code>keyData</code>.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)rekeyWithData:(NSData *)<em>keyData</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>keyData</em></dt>
+ <dd><p>The <code>NSData</code> to be used.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if success, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> You need to have purchased the sqlite encryption extensions for this method to work.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite-encrypt.com/develop-guide.htm">http://www.sqlite-encrypt.com/develop-guide.htm</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/releaseSavePointWithName:error:" title="releaseSavePointWithName:error:"></a>
+ <h3 class="subsubtitle method-title">releaseSavePointWithName:error:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Release save point</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)releaseSavePointWithName:(NSString *)<em>name</em> error:(NSError **)<em>outErr</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>name</em></dt>
+ <dd><p>Name of save point.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>outErr</em></dt>
+ <dd><p>A <code>NSError</code> object to receive any error object (if any).</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/startSavePointWithName:error:">- startSavePointWithName:error:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollbackToSavePointWithName:error:">- rollbackToSavePointWithName:error:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/rollback" title="rollback"></a>
+ <h3 class="subsubtitle method-title">rollback</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Rollback a transaction</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)rollback</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>Rollback a transaction that was initiated with either <a href="#//api/name/beginTransaction"><code>beginTransaction</code></a> or with <a href="#//api/name/beginDeferredTransaction"><code>beginDeferredTransaction</code></a>.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/beginTransaction">- beginTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/beginDeferredTransaction">- beginDeferredTransaction</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/commit">- commit</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/inTransaction">- inTransaction</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/rollbackToSavePointWithName:error:" title="rollbackToSavePointWithName:error:"></a>
+ <h3 class="subsubtitle method-title">rollbackToSavePointWithName:error:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Roll back to save point</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)rollbackToSavePointWithName:(NSString *)<em>name</em> error:(NSError **)<em>outErr</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>name</em></dt>
+ <dd><p>Name of save point.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>outErr</em></dt>
+ <dd><p>A <code>NSError</code> object to receive any error object (if any).</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/startSavePointWithName:error:">- startSavePointWithName:error:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/releaseSavePointWithName:error:">- releaseSavePointWithName:error:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/setDateFormat:" title="setDateFormat:"></a>
+ <h3 class="subsubtitle method-title">setDateFormat:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Set to a date formatter to use string dates with sqlite instead of the default UNIX timestamps.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)setDateFormat:(NSDateFormatter *)<em>format</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>format</em></dt>
+ <dd><p>Set to nil to use UNIX timestamps. Defaults to nil. Should be set using a formatter generated using FMDatabase::storeableDateFormat.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> Note there is no direct getter for the <code>NSDateFormatter</code>, and you should not use the formatter you pass to FMDB for other purposes, as <code>NSDateFormatter</code> is not thread-safe.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/hasDateFormatter">- hasDateFormatter</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/setDateFormat:">- setDateFormat:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/dateFromString:">- dateFromString:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/stringFromDate:">- stringFromDate:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/storeableDateFormat:">+ storeableDateFormat:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/setKey:" title="setKey:"></a>
+ <h3 class="subsubtitle method-title">setKey:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Set encryption key.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)setKey:(NSString *)<em>key</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>key</em></dt>
+ <dd><p>The key to be used.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if success, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> You need to have purchased the sqlite encryption extensions for this method to work.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite-encrypt.com/develop-guide.htm">http://www.sqlite-encrypt.com/develop-guide.htm</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/setKeyWithData:" title="setKeyWithData:"></a>
+ <h3 class="subsubtitle method-title">setKeyWithData:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Set encryption key using <code>keyData</code>.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)setKeyWithData:(NSData *)<em>keyData</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>keyData</em></dt>
+ <dd><p>The <code>NSData</code> to be used.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if success, <code>NO</code> on error.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> You need to have purchased the sqlite encryption extensions for this method to work.</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite-encrypt.com/develop-guide.htm">http://www.sqlite-encrypt.com/develop-guide.htm</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/setShouldCacheStatements:" title="setShouldCacheStatements:"></a>
+ <h3 class="subsubtitle method-title">setShouldCacheStatements:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Set whether should cache statements or not</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)setShouldCacheStatements:(BOOL)<em>value</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>value</em></dt>
+ <dd><p><code>YES</code> if should cache statements; <code>NO</code> if not.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/shouldCacheStatements" title="shouldCacheStatements"></a>
+ <h3 class="subsubtitle method-title">shouldCacheStatements</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Return whether should cache statements or not</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)shouldCacheStatements</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if should cache statements; <code>NO</code> if not.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/sqliteHandle" title="sqliteHandle"></a>
+ <h3 class="subsubtitle method-title">sqliteHandle</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>The underlying SQLite handle</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (sqlite3 *)sqliteHandle</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>sqlite3</code> pointer.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/startSavePointWithName:error:" title="startSavePointWithName:error:"></a>
+ <h3 class="subsubtitle method-title">startSavePointWithName:error:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Start save point</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)startSavePointWithName:(NSString *)<em>name</em> error:(NSError **)<em>outErr</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>name</em></dt>
+ <dd><p>Name of save point.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>outErr</em></dt>
+ <dd><p>A <code>NSError</code> object to receive any error object (if any).</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> on success; <code>NO</code> on failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/releaseSavePointWithName:error:">- releaseSavePointWithName:error:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/rollbackToSavePointWithName:error:">- rollbackToSavePointWithName:error:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/stringFromDate:" title="stringFromDate:"></a>
+ <h3 class="subsubtitle method-title">stringFromDate:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Convert the supplied NSDate to NSString, using the current database formatter.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)stringFromDate:(NSDate *)<em>date</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>date</em></dt>
+ <dd><p><code>NSDate</code> of date to convert to <code>NSString</code>.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>nil</code> if no formatter is set.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/hasDateFormatter">- hasDateFormatter</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/setDateFormat:">- setDateFormat:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/dateFromString:">- dateFromString:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/stringFromDate:">- stringFromDate:</a></p></code></li>
+
+ <li><code><p><a href="#//api/name/storeableDateFormat:">+ storeableDateFormat:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/update:withErrorAndBindings:" title="update:withErrorAndBindings:"></a>
+ <h3 class="subsubtitle method-title">update:withErrorAndBindings:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Execute update statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)update:(NSString *)<em>sql</em> withErrorAndBindings:(NSError **)<em>outErr</em>, <em>...</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>sql</em></dt>
+ <dd><p>The SQL to be performed, with optional <code>?</code> placeholders.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>outErr</em></dt>
+ <dd><p>A reference to the <code>NSError</code> pointer to be updated with an auto released <code>NSError</code> object if an error if an error occurs. If <code>nil</code>, no <code>NSError</code> object will be returned.</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>...</em></dt>
+ <dd><p>Optional parameters to bind to <code>?</code> placeholders in the SQL statement.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> upon success; <code>NO</code> upon failure. If failed, you can call <a href="#//api/name/lastError"><code>lastError</code></a>, <a href="#//api/name/lastErrorCode"><code>lastErrorCode</code></a>, or <a href="#//api/name/lastErrorMessage"><code>lastErrorMessage</code></a> for diagnostic information regarding the failure.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/Classes/FMDatabasePool.html b/html/Classes/FMDatabasePool.html
new file mode 100644
index 0000000..7b96225
--- /dev/null
+++ b/html/Classes/FMDatabasePool.html
@@ -0,0 +1,869 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>FMDatabasePool Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">FMDB </a></h1>
+ <a id="developerHome" href="../index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMDatabasePool Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+
+
+ <option value="class_methods">Class Methods</option>
+
+ <option value="//api/name/databasePoolWithPath:">&nbsp;&nbsp;&nbsp;&nbsp;+ databasePoolWithPath:</option>
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/countOfCheckedInDatabases">&nbsp;&nbsp;&nbsp;&nbsp;- countOfCheckedInDatabases</option>
+
+ <option value="//api/name/countOfCheckedOutDatabases">&nbsp;&nbsp;&nbsp;&nbsp;- countOfCheckedOutDatabases</option>
+
+ <option value="//api/name/countOfOpenDatabases">&nbsp;&nbsp;&nbsp;&nbsp;- countOfOpenDatabases</option>
+
+ <option value="//api/name/inDatabase:">&nbsp;&nbsp;&nbsp;&nbsp;- inDatabase:</option>
+
+ <option value="//api/name/inDeferredTransaction:">&nbsp;&nbsp;&nbsp;&nbsp;- inDeferredTransaction:</option>
+
+ <option value="//api/name/inSavePoint:">&nbsp;&nbsp;&nbsp;&nbsp;- inSavePoint:</option>
+
+ <option value="//api/name/inTransaction:">&nbsp;&nbsp;&nbsp;&nbsp;- inTransaction:</option>
+
+ <option value="//api/name/initWithPath:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithPath:</option>
+
+ <option value="//api/name/releaseAllDatabases">&nbsp;&nbsp;&nbsp;&nbsp;- releaseAllDatabases</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Initialization">Initialization</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Keeping track of checked in/out databases">Keeping track of checked in/out databases</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Perform database operations in pool">Perform database operations in pool</a></span></li>
+
+</ul></li>
+
+
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/databasePoolWithPath:">databasePoolWithPath:</a></span></li>
+
+</ul></li>
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/countOfCheckedInDatabases">countOfCheckedInDatabases</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/countOfCheckedOutDatabases">countOfCheckedOutDatabases</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/countOfOpenDatabases">countOfOpenDatabases</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inDatabase:">inDatabase:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inDeferredTransaction:">inDeferredTransaction:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inSavePoint:">inSavePoint:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inTransaction:">inTransaction:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithPath:">initWithPath:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/releaseAllDatabases">releaseAllDatabases</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="FMDatabasePool Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMDatabasePool Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">FMDatabasePool.h<br />FMDatabasePool.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>Pool of <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> objects.</p>
+
+<h3>See also</h3>
+
+<ul>
+<li><a href="../Classes/FMDatabaseQueue.html"><code>FMDatabaseQueue</code></a></li>
+<li><a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a></li>
+</ul>
+<div class="warning"><p><strong>Warning:</strong> Before using <code>FMDatabasePool</code>, please consider using <a href="../Classes/FMDatabaseQueue.html"><code>FMDatabaseQueue</code></a> instead.</p>
+
+<p>If you really really really know what you&rsquo;re doing and <code>FMDatabasePool</code> is what
+you really really need (ie, you&rsquo;re using a read only database), OK you can use
+it. But just be careful not to deadlock!</p>
+
+<p>For an example on deadlocking, search for:
+<code>ONLY_USE_THE_POOL_IF_YOU_ARE_DOING_READS_OTHERWISE_YOULL_DEADLOCK_USE_FMDATABASEQUEUE_INSTEAD</code>
+in the main.m file.</p></div>
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Initialization" name="task_Initialization"></a>
+ <h3 class="subsubtitle task-title">Initialization</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/databasePoolWithPath:">+&nbsp;databasePoolWithPath:</a></code>
+ <span class="tooltip"><p>Create pool using path.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/initWithPath:">&ndash;&nbsp;initWithPath:</a></code>
+ <span class="tooltip"><p>Create pool using path.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Keeping track of checked in/out databases" name="task_Keeping track of checked in/out databases"></a>
+ <h3 class="subsubtitle task-title">Keeping track of checked in/out databases</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/countOfCheckedInDatabases">&ndash;&nbsp;countOfCheckedInDatabases</a></code>
+ <span class="tooltip"><p>Number of checked-in databases in pool</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/countOfCheckedOutDatabases">&ndash;&nbsp;countOfCheckedOutDatabases</a></code>
+ <span class="tooltip"><p>Number of checked-out databases in pool</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/countOfOpenDatabases">&ndash;&nbsp;countOfOpenDatabases</a></code>
+ <span class="tooltip"><p>Total number of databases in pool</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/releaseAllDatabases">&ndash;&nbsp;releaseAllDatabases</a></code>
+ <span class="tooltip"><p>Release all databases in pool</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Perform database operations in pool" name="task_Perform database operations in pool"></a>
+ <h3 class="subsubtitle task-title">Perform database operations in pool</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inDatabase:">&ndash;&nbsp;inDatabase:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations in pool.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inTransaction:">&ndash;&nbsp;inTransaction:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations in pool using transaction.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inDeferredTransaction:">&ndash;&nbsp;inDeferredTransaction:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations in pool using deferred transaction.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inSavePoint:">&ndash;&nbsp;inSavePoint:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations in pool using save point.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Class Methods" name="class_methods"></a>
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/databasePoolWithPath:" title="databasePoolWithPath:"></a>
+ <h3 class="subsubtitle method-title">databasePoolWithPath:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Create pool using path.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (id)databasePoolWithPath:(NSString *)<em>aPath</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>aPath</em></dt>
+ <dd><p>The file path of the database.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>FMDatabasePool</code> object. <code>nil</code> on error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/countOfCheckedInDatabases" title="countOfCheckedInDatabases"></a>
+ <h3 class="subsubtitle method-title">countOfCheckedInDatabases</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Number of checked-in databases in pool</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSUInteger)countOfCheckedInDatabases</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Number of databases</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/countOfCheckedOutDatabases" title="countOfCheckedOutDatabases"></a>
+ <h3 class="subsubtitle method-title">countOfCheckedOutDatabases</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Number of checked-out databases in pool</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSUInteger)countOfCheckedOutDatabases</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Number of databases</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/countOfOpenDatabases" title="countOfOpenDatabases"></a>
+ <h3 class="subsubtitle method-title">countOfOpenDatabases</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Total number of databases in pool</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSUInteger)countOfOpenDatabases</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Number of databases</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inDatabase:" title="inDatabase:"></a>
+ <h3 class="subsubtitle method-title">inDatabase:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations in pool.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)inDatabase:(void ( ^ ) ( FMDatabase *db ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the <code>FMDatabasePool</code> pool.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inDeferredTransaction:" title="inDeferredTransaction:"></a>
+ <h3 class="subsubtitle method-title">inDeferredTransaction:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations in pool using deferred transaction.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)inDeferredTransaction:(void ( ^ ) ( FMDatabase *db , BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the <code>FMDatabasePool</code> pool.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inSavePoint:" title="inSavePoint:"></a>
+ <h3 class="subsubtitle method-title">inSavePoint:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations in pool using save point.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSError *)inSavePoint:(void ( ^ ) ( FMDatabase *db , BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the <code>FMDatabasePool</code> pool.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> You can not nest these, since calling it will pull another database out of the pool and you&rsquo;ll get a deadlock. If you need to nest, use <a href="../Classes/FMDatabase.html#//api/name/startSavePointWithName:error:"><code>[FMDatabase startSavePointWithName:error:]</code></a> instead.</p></div>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inTransaction:" title="inTransaction:"></a>
+ <h3 class="subsubtitle method-title">inTransaction:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations in pool using transaction.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)inTransaction:(void ( ^ ) ( FMDatabase *db , BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the <code>FMDatabasePool</code> pool.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/initWithPath:" title="initWithPath:"></a>
+ <h3 class="subsubtitle method-title">initWithPath:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Create pool using path.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)initWithPath:(NSString *)<em>aPath</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>aPath</em></dt>
+ <dd><p>The file path of the database.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>FMDatabasePool</code> object. <code>nil</code> on error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/releaseAllDatabases" title="releaseAllDatabases"></a>
+ <h3 class="subsubtitle method-title">releaseAllDatabases</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Release all databases in pool</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)releaseAllDatabases</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabasePool.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/Classes/FMDatabaseQueue.html b/html/Classes/FMDatabaseQueue.html
new file mode 100644
index 0000000..785ed9e
--- /dev/null
+++ b/html/Classes/FMDatabaseQueue.html
@@ -0,0 +1,730 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>FMDatabaseQueue Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">FMDB </a></h1>
+ <a id="developerHome" href="../index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMDatabaseQueue Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+
+
+ <option value="class_methods">Class Methods</option>
+
+ <option value="//api/name/databaseQueueWithPath:">&nbsp;&nbsp;&nbsp;&nbsp;+ databaseQueueWithPath:</option>
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/close">&nbsp;&nbsp;&nbsp;&nbsp;- close</option>
+
+ <option value="//api/name/inDatabase:">&nbsp;&nbsp;&nbsp;&nbsp;- inDatabase:</option>
+
+ <option value="//api/name/inDeferredTransaction:">&nbsp;&nbsp;&nbsp;&nbsp;- inDeferredTransaction:</option>
+
+ <option value="//api/name/inSavePoint:">&nbsp;&nbsp;&nbsp;&nbsp;- inSavePoint:</option>
+
+ <option value="//api/name/inTransaction:">&nbsp;&nbsp;&nbsp;&nbsp;- inTransaction:</option>
+
+ <option value="//api/name/initWithPath:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithPath:</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Initialization, opening, and closing of queue">Initialization, opening, and closing of queue</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Dispatching database operations to queue">Dispatching database operations to queue</a></span></li>
+
+</ul></li>
+
+
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/databaseQueueWithPath:">databaseQueueWithPath:</a></span></li>
+
+</ul></li>
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/close">close</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inDatabase:">inDatabase:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inDeferredTransaction:">inDeferredTransaction:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inSavePoint:">inSavePoint:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inTransaction:">inTransaction:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithPath:">initWithPath:</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="FMDatabaseQueue Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMDatabaseQueue Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">FMDatabaseQueue.h<br />FMDatabaseQueue.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>To perform queries and updates on multiple threads, you&rsquo;ll want to use <code>FMDatabaseQueue</code>.</p>
+
+<p>Using a single instance of <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> from multiple threads at once is a bad idea. It has always been OK to make a <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> object <em>per thread</em>. Just don&rsquo;t share a single instance across threads, and definitely not across multiple threads at the same time.</p>
+
+<p>Instead, use <code>FMDatabaseQueue</code>. Here&rsquo;s how to use it:</p>
+
+<p>First, make your queue.</p>
+
+<pre><code>FMDatabaseQueue *queue = [FMDatabaseQueue databaseQueueWithPath:aPath];
+</code></pre>
+
+<p>Then use it like so:</p>
+
+<pre><code>[queue inDatabase:^(FMDatabase *db) {
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:1]];
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:2]];
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:3]];
+
+ FMResultSet *rs = [db executeQuery:@"select * from foo"];
+ while ([rs next]) {
+ //…
+ }
+}];
+</code></pre>
+
+<p>An easy way to wrap things up in a transaction can be done like this:</p>
+
+<pre><code>[queue inTransaction:^(FMDatabase *db, BOOL *rollback) {
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:1]];
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:2]];
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:3]];
+
+ if (whoopsSomethingWrongHappened) {
+ *rollback = YES;
+ return;
+ }
+ // etc…
+ [db executeUpdate:@"INSERT INTO myTable VALUES (?)", [NSNumber numberWithInt:4]];
+}];
+</code></pre>
+
+<p><code>FMDatabaseQueue</code> will run the blocks on a serialized queue (hence the name of the class). So if you call <code>FMDatabaseQueue</code>&rsquo;s methods from multiple threads at the same time, they will be executed in the order they are received. This way queries and updates won&rsquo;t step on each other&rsquo;s toes, and every one is happy.</p>
+
+<h3>See also</h3>
+
+<ul>
+<li><a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a></li>
+</ul>
+<div class="warning"><p><strong>Warning:</strong> Do not instantiate a single <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> object and use it across multiple threads. Use <code>FMDatabaseQueue</code> instead.</p></div><div class="warning"><p><strong>Warning:</strong> The calls to <code>FMDatabaseQueue</code>&rsquo;s methods are blocking. So even though you are passing along blocks, they will <strong>not</strong> be run on another thread.</p></div>
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Initialization, opening, and closing of queue" name="task_Initialization, opening, and closing of queue"></a>
+ <h3 class="subsubtitle task-title">Initialization, opening, and closing of queue</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/databaseQueueWithPath:">+&nbsp;databaseQueueWithPath:</a></code>
+ <span class="tooltip"><p>Create queue using path.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/initWithPath:">&ndash;&nbsp;initWithPath:</a></code>
+ <span class="tooltip"><p>Create queue using path.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/close">&ndash;&nbsp;close</a></code>
+ <span class="tooltip"><p>Close database used by queue.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Dispatching database operations to queue" name="task_Dispatching database operations to queue"></a>
+ <h3 class="subsubtitle task-title">Dispatching database operations to queue</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inDatabase:">&ndash;&nbsp;inDatabase:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations on queue.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inTransaction:">&ndash;&nbsp;inTransaction:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations on queue, using transactions.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inDeferredTransaction:">&ndash;&nbsp;inDeferredTransaction:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations on queue, using deferred transactions.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/inSavePoint:">&ndash;&nbsp;inSavePoint:</a></code>
+ <span class="tooltip"><p>Synchronously perform database operations using save point.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Class Methods" name="class_methods"></a>
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/databaseQueueWithPath:" title="databaseQueueWithPath:"></a>
+ <h3 class="subsubtitle method-title">databaseQueueWithPath:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Create queue using path.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (id)databaseQueueWithPath:(NSString *)<em>aPath</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>aPath</em></dt>
+ <dd><p>The file path of the database.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>FMDatabaseQueue</code> object. <code>nil</code> on error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/close" title="close"></a>
+ <h3 class="subsubtitle method-title">close</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Close database used by queue.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)close</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inDatabase:" title="inDatabase:"></a>
+ <h3 class="subsubtitle method-title">inDatabase:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations on queue.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)inDatabase:(void ( ^ ) ( FMDatabase *db ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the queue of <code>FMDatabaseQueue</code></p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inDeferredTransaction:" title="inDeferredTransaction:"></a>
+ <h3 class="subsubtitle method-title">inDeferredTransaction:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations on queue, using deferred transactions.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)inDeferredTransaction:(void ( ^ ) ( FMDatabase *db , BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the queue of <code>FMDatabaseQueue</code></p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inSavePoint:" title="inSavePoint:"></a>
+ <h3 class="subsubtitle method-title">inSavePoint:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations using save point.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSError *)inSavePoint:(void ( ^ ) ( FMDatabase *db , BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the queue of <code>FMDatabaseQueue</code></p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/inTransaction:" title="inTransaction:"></a>
+ <h3 class="subsubtitle method-title">inTransaction:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Synchronously perform database operations on queue, using transactions.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)inTransaction:(void ( ^ ) ( FMDatabase *db , BOOL *rollback ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The code to be run on the queue of <code>FMDatabaseQueue</code></p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/initWithPath:" title="initWithPath:"></a>
+ <h3 class="subsubtitle method-title">initWithPath:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Create queue using path.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)initWithPath:(NSString *)<em>aPath</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>aPath</em></dt>
+ <dd><p>The file path of the database.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>The <code>FMDatabaseQueue</code> object. <code>nil</code> on error.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabaseQueue.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/Classes/FMResultSet.html b/html/Classes/FMResultSet.html
new file mode 100644
index 0000000..0ea102d
--- /dev/null
+++ b/html/Classes/FMResultSet.html
@@ -0,0 +1,2857 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>FMResultSet Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">FMDB </a></h1>
+ <a id="developerHome" href="../index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMResultSet Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+ <option value="properties">Properties</option>
+
+ <option value="//api/name/columnNameToIndexMap">&nbsp;&nbsp;&nbsp;&nbsp;columnNameToIndexMap</option>
+
+ <option value="//api/name/query">&nbsp;&nbsp;&nbsp;&nbsp;query</option>
+
+ <option value="//api/name/statement">&nbsp;&nbsp;&nbsp;&nbsp;statement</option>
+
+
+
+
+ <option value="class_methods">Class Methods</option>
+
+ <option value="//api/name/resultSetWithStatement:usingParentDatabase:">&nbsp;&nbsp;&nbsp;&nbsp;+ resultSetWithStatement:usingParentDatabase:</option>
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/UTF8StringForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- UTF8StringForColumnIndex:</option>
+
+ <option value="//api/name/UTF8StringForColumnName:">&nbsp;&nbsp;&nbsp;&nbsp;- UTF8StringForColumnName:</option>
+
+ <option value="//api/name/boolForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- boolForColumn:</option>
+
+ <option value="//api/name/boolForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- boolForColumnIndex:</option>
+
+ <option value="//api/name/close">&nbsp;&nbsp;&nbsp;&nbsp;- close</option>
+
+ <option value="//api/name/columnCount">&nbsp;&nbsp;&nbsp;&nbsp;- columnCount</option>
+
+ <option value="//api/name/columnIndexForName:">&nbsp;&nbsp;&nbsp;&nbsp;- columnIndexForName:</option>
+
+ <option value="//api/name/columnIndexIsNull:">&nbsp;&nbsp;&nbsp;&nbsp;- columnIndexIsNull:</option>
+
+ <option value="//api/name/columnIsNull:">&nbsp;&nbsp;&nbsp;&nbsp;- columnIsNull:</option>
+
+ <option value="//api/name/columnNameForIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- columnNameForIndex:</option>
+
+ <option value="//api/name/dataForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- dataForColumn:</option>
+
+ <option value="//api/name/dataForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- dataForColumnIndex:</option>
+
+ <option value="//api/name/dataNoCopyForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- dataNoCopyForColumn:</option>
+
+ <option value="//api/name/dataNoCopyForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- dataNoCopyForColumnIndex:</option>
+
+ <option value="//api/name/dateForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- dateForColumn:</option>
+
+ <option value="//api/name/dateForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- dateForColumnIndex:</option>
+
+ <option value="//api/name/doubleForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- doubleForColumn:</option>
+
+ <option value="//api/name/doubleForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- doubleForColumnIndex:</option>
+
+ <option value="//api/name/hasAnotherRow">&nbsp;&nbsp;&nbsp;&nbsp;- hasAnotherRow</option>
+
+ <option value="//api/name/intForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- intForColumn:</option>
+
+ <option value="//api/name/intForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- intForColumnIndex:</option>
+
+ <option value="//api/name/kvcMagic:">&nbsp;&nbsp;&nbsp;&nbsp;- kvcMagic:</option>
+
+ <option value="//api/name/longForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- longForColumn:</option>
+
+ <option value="//api/name/longForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- longForColumnIndex:</option>
+
+ <option value="//api/name/longLongIntForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- longLongIntForColumn:</option>
+
+ <option value="//api/name/longLongIntForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- longLongIntForColumnIndex:</option>
+
+ <option value="//api/name/next">&nbsp;&nbsp;&nbsp;&nbsp;- next</option>
+
+ <option value="//api/name/objectAtIndexedSubscript:">&nbsp;&nbsp;&nbsp;&nbsp;- objectAtIndexedSubscript:</option>
+
+ <option value="//api/name/objectForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- objectForColumnIndex:</option>
+
+ <option value="//api/name/objectForColumnName:">&nbsp;&nbsp;&nbsp;&nbsp;- objectForColumnName:</option>
+
+ <option value="//api/name/objectForKeyedSubscript:">&nbsp;&nbsp;&nbsp;&nbsp;- objectForKeyedSubscript:</option>
+
+ <option value="//api/name/resultDict">&nbsp;&nbsp;&nbsp;&nbsp;- resultDict</option>
+
+ <option value="//api/name/resultDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- resultDictionary</option>
+
+ <option value="//api/name/stringForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- stringForColumn:</option>
+
+ <option value="//api/name/stringForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- stringForColumnIndex:</option>
+
+ <option value="//api/name/unsignedLongLongIntForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- unsignedLongLongIntForColumn:</option>
+
+ <option value="//api/name/unsignedLongLongIntForColumnIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- unsignedLongLongIntForColumnIndex:</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and closing database">Creating and closing database</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Iterating through the result set">Iterating through the result set</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Retrieving information from result set">Retrieving information from result set</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Key value coding magic">Key value coding magic</a></span></li>
+
+</ul></li>
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnNameToIndexMap">columnNameToIndexMap</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/query">query</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/statement">statement</a></span></li>
+
+</ul></li>
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resultSetWithStatement:usingParentDatabase:">resultSetWithStatement:usingParentDatabase:</a></span></li>
+
+</ul></li>
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/UTF8StringForColumnIndex:">UTF8StringForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/UTF8StringForColumnName:">UTF8StringForColumnName:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/boolForColumn:">boolForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/boolForColumnIndex:">boolForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/close">close</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnCount">columnCount</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnIndexForName:">columnIndexForName:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnIndexIsNull:">columnIndexIsNull:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnIsNull:">columnIsNull:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columnNameForIndex:">columnNameForIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dataForColumn:">dataForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dataForColumnIndex:">dataForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dataNoCopyForColumn:">dataNoCopyForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dataNoCopyForColumnIndex:">dataNoCopyForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dateForColumn:">dateForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dateForColumnIndex:">dateForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/doubleForColumn:">doubleForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/doubleForColumnIndex:">doubleForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hasAnotherRow">hasAnotherRow</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/intForColumn:">intForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/intForColumnIndex:">intForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/kvcMagic:">kvcMagic:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longForColumn:">longForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longForColumnIndex:">longForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longLongIntForColumn:">longLongIntForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longLongIntForColumnIndex:">longLongIntForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/next">next</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectAtIndexedSubscript:">objectAtIndexedSubscript:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectForColumnIndex:">objectForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectForColumnName:">objectForColumnName:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectForKeyedSubscript:">objectForKeyedSubscript:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resultDict">resultDict</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resultDictionary">resultDictionary</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stringForColumn:">stringForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stringForColumnIndex:">stringForColumnIndex:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/unsignedLongLongIntForColumn:">unsignedLongLongIntForColumn:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/unsignedLongLongIntForColumnIndex:">unsignedLongLongIntForColumnIndex:</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="FMResultSet Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMResultSet Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">FMResultSet.h<br />FMResultSet.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>Represents the results of executing a query on an <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a>.</p>
+
+<h3>See also</h3>
+
+<ul>
+<li><a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a></li>
+</ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Properties" name="task_Properties"></a>
+ <h3 class="subsubtitle task-title">Properties</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/query">&nbsp;&nbsp;query</a></code>
+ <span class="tooltip"><p>Executed query</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnNameToIndexMap">&nbsp;&nbsp;columnNameToIndexMap</a></code>
+ <span class="tooltip"><p><code>NSMutableDictionary</code> mapping column names to numeric index</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/statement">&nbsp;&nbsp;statement</a></code>
+ <span class="tooltip"><p><code>FMStatement</code> used by result set.</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li>
+ </ul>
+
+
+ <a title="Creating and closing database" name="task_Creating and closing database"></a>
+ <h3 class="subsubtitle task-title">Creating and closing database</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/resultSetWithStatement:usingParentDatabase:">+&nbsp;resultSetWithStatement:usingParentDatabase:</a></code>
+ <span class="tooltip"><p>Create result set from <a href="../Classes/FMStatement.html"><code>FMStatement</code></a></p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/close">&ndash;&nbsp;close</a></code>
+ <span class="tooltip"><p>Close result set</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Iterating through the result set" name="task_Iterating through the result set"></a>
+ <h3 class="subsubtitle task-title">Iterating through the result set</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/next">&ndash;&nbsp;next</a></code>
+ <span class="tooltip"><p>Retrieve next row for result set.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/hasAnotherRow">&ndash;&nbsp;hasAnotherRow</a></code>
+ <span class="tooltip"><p>Does the result set have another row?</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Retrieving information from result set" name="task_Retrieving information from result set"></a>
+ <h3 class="subsubtitle task-title">Retrieving information from result set</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnCount">&ndash;&nbsp;columnCount</a></code>
+ <span class="tooltip"><p>How many columns in result set</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnIndexForName:">&ndash;&nbsp;columnIndexForName:</a></code>
+ <span class="tooltip"><p>Column index for column name</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnNameForIndex:">&ndash;&nbsp;columnNameForIndex:</a></code>
+ <span class="tooltip"><p>Column name for column index</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/intForColumn:">&ndash;&nbsp;intForColumn:</a></code>
+ <span class="tooltip"><p>Result set integer value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/intForColumnIndex:">&ndash;&nbsp;intForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set integer value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/longForColumn:">&ndash;&nbsp;longForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>long</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/longForColumnIndex:">&ndash;&nbsp;longForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set long value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/longLongIntForColumn:">&ndash;&nbsp;longLongIntForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>long long int</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/longLongIntForColumnIndex:">&ndash;&nbsp;longLongIntForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>long long int</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/unsignedLongLongIntForColumn:">&ndash;&nbsp;unsignedLongLongIntForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>unsigned long long int</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/unsignedLongLongIntForColumnIndex:">&ndash;&nbsp;unsignedLongLongIntForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>unsigned long long int</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/boolForColumn:">&ndash;&nbsp;boolForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>BOOL</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/boolForColumnIndex:">&ndash;&nbsp;boolForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>BOOL</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/doubleForColumn:">&ndash;&nbsp;doubleForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>double</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/doubleForColumnIndex:">&ndash;&nbsp;doubleForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>double</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/stringForColumn:">&ndash;&nbsp;stringForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>NSString</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/stringForColumnIndex:">&ndash;&nbsp;stringForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>NSString</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dateForColumn:">&ndash;&nbsp;dateForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>NSDate</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dateForColumnIndex:">&ndash;&nbsp;dateForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>NSDate</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dataForColumn:">&ndash;&nbsp;dataForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>NSData</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dataForColumnIndex:">&ndash;&nbsp;dataForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>NSData</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/UTF8StringForColumnName:">&ndash;&nbsp;UTF8StringForColumnName:</a></code>
+ <span class="tooltip"><p>Result set <code>(const unsigned char *)</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/UTF8StringForColumnIndex:">&ndash;&nbsp;UTF8StringForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>(const unsigned char *)</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/objectForColumnName:">&ndash;&nbsp;objectForColumnName:</a></code>
+ <span class="tooltip"><p>Result set object for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/objectForColumnIndex:">&ndash;&nbsp;objectForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set object for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/objectForKeyedSubscript:">&ndash;&nbsp;objectForKeyedSubscript:</a></code>
+ <span class="tooltip"><p>Result set object for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/objectAtIndexedSubscript:">&ndash;&nbsp;objectAtIndexedSubscript:</a></code>
+ <span class="tooltip"><p>Result set object for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dataNoCopyForColumn:">&ndash;&nbsp;dataNoCopyForColumn:</a></code>
+ <span class="tooltip"><p>Result set <code>NSData</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dataNoCopyForColumnIndex:">&ndash;&nbsp;dataNoCopyForColumnIndex:</a></code>
+ <span class="tooltip"><p>Result set <code>NSData</code> value for column.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnIndexIsNull:">&ndash;&nbsp;columnIndexIsNull:</a></code>
+ <span class="tooltip"><p>Is the column <code>NULL</code>?</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/columnIsNull:">&ndash;&nbsp;columnIsNull:</a></code>
+ <span class="tooltip"><p>Is the column <code>NULL</code>?</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/resultDictionary">&ndash;&nbsp;resultDictionary</a></code>
+ <span class="tooltip"><p>Returns a dictionary of the row results mapped to case sensitive keys of the column names.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/resultDict">&ndash;&nbsp;resultDict</a></code>
+ <span class="tooltip"><p>Returns a dictionary of the row results</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+
+ <a title="Key value coding magic" name="task_Key value coding magic"></a>
+ <h3 class="subsubtitle task-title">Key value coding magic</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/kvcMagic:">&ndash;&nbsp;kvcMagic:</a></code>
+ <span class="tooltip"><p>Performs <code>setValue</code> to yield support for key value observing.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Properties" name="properties"></a>
+ <h2 class="subtitle subtitle-methods">Properties</h2>
+
+ <div class="section-method">
+ <a name="//api/name/columnNameToIndexMap" title="columnNameToIndexMap"></a>
+ <h3 class="subsubtitle method-title">columnNameToIndexMap</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p><code>NSMutableDictionary</code> mapping column names to numeric index</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (readonly) NSMutableDictionary *columnNameToIndexMap</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/query" title="query"></a>
+ <h3 class="subsubtitle method-title">query</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Executed query</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, retain) NSString *query</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/statement" title="statement"></a>
+ <h3 class="subsubtitle method-title">statement</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p><code>FMStatement</code> used by result set.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, retain) FMStatement *statement</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+ <div class="section section-methods">
+ <a title="Class Methods" name="class_methods"></a>
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/resultSetWithStatement:usingParentDatabase:" title="resultSetWithStatement:usingParentDatabase:"></a>
+ <h3 class="subsubtitle method-title">resultSetWithStatement:usingParentDatabase:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Create result set from <a href="../Classes/FMStatement.html"><code>FMStatement</code></a></p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (id)resultSetWithStatement:(FMStatement *)<em>statement</em> usingParentDatabase:(FMDatabase *)<em>aDB</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>statement</em></dt>
+ <dd><p>A <a href="../Classes/FMStatement.html"><code>FMStatement</code></a> to be performed</p></dd>
+ </dl>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>aDB</em></dt>
+ <dd><p>A <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> to be used</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>A <code>FMResultSet</code> on success; <code>nil</code> on failure</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/UTF8StringForColumnIndex:" title="UTF8StringForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">UTF8StringForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>(const unsigned char *)</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (const unsigned char *)UTF8StringForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>(const unsigned char *)</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/UTF8StringForColumnName:" title="UTF8StringForColumnName:"></a>
+ <h3 class="subsubtitle method-title">UTF8StringForColumnName:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>(const unsigned char *)</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (const unsigned char *)UTF8StringForColumnName:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>(const unsigned char *)</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/boolForColumn:" title="boolForColumn:"></a>
+ <h3 class="subsubtitle method-title">boolForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>BOOL</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)boolForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>BOOL</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/boolForColumnIndex:" title="boolForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">boolForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>BOOL</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)boolForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>BOOL</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/close" title="close"></a>
+ <h3 class="subsubtitle method-title">close</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Close result set</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)close</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnCount" title="columnCount"></a>
+ <h3 class="subsubtitle method-title">columnCount</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>How many columns in result set</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)columnCount</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Integer value of the number of columns.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnIndexForName:" title="columnIndexForName:"></a>
+ <h3 class="subsubtitle method-title">columnIndexForName:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Column index for column name</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)columnIndexForName:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Zero-based index for column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnIndexIsNull:" title="columnIndexIsNull:"></a>
+ <h3 class="subsubtitle method-title">columnIndexIsNull:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Is the column <code>NULL</code>?</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)columnIndexIsNull:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if column is <code>NULL</code>; <code>NO</code> if not <code>NULL</code>.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnIsNull:" title="columnIsNull:"></a>
+ <h3 class="subsubtitle method-title">columnIsNull:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Is the column <code>NULL</code>?</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)columnIsNull:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if column is <code>NULL</code>; <code>NO</code> if not <code>NULL</code>.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/columnNameForIndex:" title="columnNameForIndex:"></a>
+ <h3 class="subsubtitle method-title">columnNameForIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Column name for column index</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)columnNameForIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>columnName <code>NSString</code> value of the name of the column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dataForColumn:" title="dataForColumn:"></a>
+ <h3 class="subsubtitle method-title">dataForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSData</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSData *)dataForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSData</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This is useful when storing binary data in table (such as image or the like).</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dataForColumnIndex:" title="dataForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">dataForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSData</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSData *)dataForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSData</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dataNoCopyForColumn:" title="dataNoCopyForColumn:"></a>
+ <h3 class="subsubtitle method-title">dataNoCopyForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSData</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSData *)dataNoCopyForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSData</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> If you are going to use this data after you iterate over the next row, or after you close the
+result set, make sure to make a copy of the data first (or just use <a href="#//api/name/dataForColumn:"><code>dataForColumn:</code></a>/<a href="#//api/name/dataForColumnIndex:"><code>dataForColumnIndex:</code></a>)
+If you don&rsquo;t, you&rsquo;re going to be in a world of hurt when you try and use the data.</p></div>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dataNoCopyForColumnIndex:" title="dataNoCopyForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">dataNoCopyForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSData</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSData *)dataNoCopyForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSData</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> If you are going to use this data after you iterate over the next row, or after you close the
+result set, make sure to make a copy of the data first (or just use <a href="#//api/name/dataForColumn:"><code>dataForColumn:</code></a>/<a href="#//api/name/dataForColumnIndex:"><code>dataForColumnIndex:</code></a>)
+If you don&rsquo;t, you&rsquo;re going to be in a world of hurt when you try and use the data.</p></div>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dateForColumn:" title="dateForColumn:"></a>
+ <h3 class="subsubtitle method-title">dateForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSDate</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSDate *)dateForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSDate</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/dateForColumnIndex:" title="dateForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">dateForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSDate</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSDate *)dateForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSDate</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/doubleForColumn:" title="doubleForColumn:"></a>
+ <h3 class="subsubtitle method-title">doubleForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>double</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (double)doubleForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>double</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/doubleForColumnIndex:" title="doubleForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">doubleForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>double</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (double)doubleForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>double</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/hasAnotherRow" title="hasAnotherRow"></a>
+ <h3 class="subsubtitle method-title">hasAnotherRow</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Does the result set have another row?</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)hasAnotherRow</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if there is another row; <code>NO</code> if not.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/intForColumn:" title="intForColumn:"></a>
+ <h3 class="subsubtitle method-title">intForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set integer value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)intForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>int</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/intForColumnIndex:" title="intForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">intForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set integer value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (int)intForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>int</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/kvcMagic:" title="kvcMagic:"></a>
+ <h3 class="subsubtitle method-title">kvcMagic:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Performs <code>setValue</code> to yield support for key value observing.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)kvcMagic:(id)<em>object</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>object</em></dt>
+ <dd><p>The object for which the values will be set. This is the key-value-coding compliant object that you might, for example, observe.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/longForColumn:" title="longForColumn:"></a>
+ <h3 class="subsubtitle method-title">longForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>long</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (long)longForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>long</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/longForColumnIndex:" title="longForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">longForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set long value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (long)longForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>long</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/longLongIntForColumn:" title="longLongIntForColumn:"></a>
+ <h3 class="subsubtitle method-title">longLongIntForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>long long int</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (long long int)longLongIntForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>long long int</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/longLongIntForColumnIndex:" title="longLongIntForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">longLongIntForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>long long int</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (long long int)longLongIntForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>long long int</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/next" title="next"></a>
+ <h3 class="subsubtitle method-title">next</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Retrieve next row for result set.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (BOOL)next</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>YES</code> if row successfully retrieved; <code>NO</code> if end of result set reached</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>You must always invoke <code>next</code> before attempting to access the values returned in a query, even if you&rsquo;re only expecting one.</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/objectAtIndexedSubscript:" title="objectAtIndexedSubscript:"></a>
+ <h3 class="subsubtitle method-title">objectAtIndexedSubscript:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set object for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)objectAtIndexedSubscript:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Either <code>NSNumber</code>, <code>NSString</code>, <code>NSData</code>, or <code>NSNull</code>. If the column was <code>NULL</code>, this returns <code>[NSNull null]</code> object.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This method allows the use of the &ldquo;boxed&rdquo; syntax supported in Modern Objective-C. For example, by defining this method, the following syntax is now supported:</p>
+
+<pre><code>id result = rs[0];
+</code></pre>
+
+<p>This simplified syntax is equivalent to calling:</p>
+
+<pre><code>id result = [rs objectForKeyedSubscript:0];
+</code></pre>
+
+<p>which is, it turns out, equivalent to calling:</p>
+
+<pre><code>id result = [rs objectForColumnName:0];
+</code></pre>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/objectForColumnIndex:" title="objectForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">objectForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set object for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)objectForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Either <code>NSNumber</code>, <code>NSString</code>, <code>NSData</code>, or <code>NSNull</code>. If the column was <code>NULL</code>, this returns <code>[NSNull null]</code> object.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/objectAtIndexedSubscript:">- objectAtIndexedSubscript:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/objectForColumnName:" title="objectForColumnName:"></a>
+ <h3 class="subsubtitle method-title">objectForColumnName:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set object for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)objectForColumnName:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Either <code>NSNumber</code>, <code>NSString</code>, <code>NSData</code>, or <code>NSNull</code>. If the column was <code>NULL</code>, this returns <code>[NSNull null]</code> object.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/objectForKeyedSubscript:">- objectForKeyedSubscript:</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/objectForKeyedSubscript:" title="objectForKeyedSubscript:"></a>
+ <h3 class="subsubtitle method-title">objectForKeyedSubscript:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set object for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (id)objectForKeyedSubscript:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>Either <code>NSNumber</code>, <code>NSString</code>, <code>NSData</code>, or <code>NSNull</code>. If the column was <code>NULL</code>, this returns <code>[NSNull null]</code> object.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>This method allows the use of the &ldquo;boxed&rdquo; syntax supported in Modern Objective-C. For example, by defining this method, the following syntax is now supported:</p>
+
+<pre><code>id result = rs[@"employee_name"];
+</code></pre>
+
+<p>This simplified syntax is equivalent to calling:</p>
+
+<pre><code>id result = [rs objectForKeyedSubscript:@"employee_name"];
+</code></pre>
+
+<p>which is, it turns out, equivalent to calling:</p>
+
+<pre><code>id result = [rs objectForColumnName:@"employee_name"];
+</code></pre>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/resultDict" title="resultDict"></a>
+ <h3 class="subsubtitle method-title">resultDict</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Returns a dictionary of the row results</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSDictionary *)resultDict</code></div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> <strong>Deprecated</strong>: Please use <a href="#//api/name/resultDictionary"><code>resultDictionary</code></a> instead. Also, beware that <a href="#//api/name/resultDictionary"><code>resultDictionary</code></a> is case sensitive!</p></div>
+ </div>
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="#//api/name/resultDictionary">- resultDictionary</a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/resultDictionary" title="resultDictionary"></a>
+ <h3 class="subsubtitle method-title">resultDictionary</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Returns a dictionary of the row results mapped to case sensitive keys of the column names.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSDictionary *)resultDictionary</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSDictionary</code> of the row results.</p>
+ </div>
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <div class="warning"><p><strong>Warning:</strong> The keys to the dictionary are case sensitive of the column names.</p></div>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/stringForColumn:" title="stringForColumn:"></a>
+ <h3 class="subsubtitle method-title">stringForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSString</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)stringForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSString</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/stringForColumnIndex:" title="stringForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">stringForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>NSString</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)stringForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>NSString</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/unsignedLongLongIntForColumn:" title="unsignedLongLongIntForColumn:"></a>
+ <h3 class="subsubtitle method-title">unsignedLongLongIntForColumn:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>unsigned long long int</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (unsigned long long int)unsignedLongLongIntForColumn:(NSString *)<em>columnName</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnName</em></dt>
+ <dd><p><code>NSString</code> value of the name of the column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>unsigned long long int</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/unsignedLongLongIntForColumnIndex:" title="unsignedLongLongIntForColumnIndex:"></a>
+ <h3 class="subsubtitle method-title">unsignedLongLongIntForColumnIndex:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Result set <code>unsigned long long int</code> value for column.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (unsigned long long int)unsignedLongLongIntForColumnIndex:(int)<em>columnIdx</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>columnIdx</em></dt>
+ <dd><p>Zero-based index for column.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p><code>unsigned long long int</code> value of the result set&rsquo;s column.</p>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMResultSet.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/Classes/FMStatement.html b/html/Classes/FMStatement.html
new file mode 100644
index 0000000..8dacb73
--- /dev/null
+++ b/html/Classes/FMStatement.html
@@ -0,0 +1,538 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>FMStatement Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">FMDB </a></h1>
+ <a id="developerHome" href="../index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMStatement Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+ <option value="properties">Properties</option>
+
+ <option value="//api/name/query">&nbsp;&nbsp;&nbsp;&nbsp;query</option>
+
+ <option value="//api/name/statement">&nbsp;&nbsp;&nbsp;&nbsp;statement</option>
+
+ <option value="//api/name/useCount">&nbsp;&nbsp;&nbsp;&nbsp;useCount</option>
+
+
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/close">&nbsp;&nbsp;&nbsp;&nbsp;- close</option>
+
+ <option value="//api/name/reset">&nbsp;&nbsp;&nbsp;&nbsp;- reset</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Closing and Resetting">Closing and Resetting</a></span></li>
+
+</ul></li>
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/query">query</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/statement">statement</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/useCount">useCount</a></span></li>
+
+</ul></li>
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/close">close</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/reset">reset</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="FMStatement Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMStatement Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">FMDatabase.h<br />FMDatabase.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>Objective-C wrapper for <code>sqlite3_stmt</code></p>
+
+<p>This is a wrapper for a SQLite <code>sqlite3_stmt</code>. Generally when using FMDB you will not need to interact directly with <code>FMStatement</code>, but rather with <a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a> and <a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a> only.</p>
+
+<h3>See also</h3>
+
+<ul>
+<li><a href="../Classes/FMDatabase.html"><code>FMDatabase</code></a></li>
+<li><a href="../Classes/FMResultSet.html"><code>FMResultSet</code></a></li>
+<li><a href="http://www.sqlite.org/c3ref/stmt.html"><code>sqlite3_stmt</code></a></li>
+</ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Properties" name="task_Properties"></a>
+ <h3 class="subsubtitle task-title">Properties</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/useCount">&nbsp;&nbsp;useCount</a></code>
+ <span class="tooltip"><p>Usage count</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/query">&nbsp;&nbsp;query</a></code>
+ <span class="tooltip"><p>SQL statement</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/statement">&nbsp;&nbsp;statement</a></code>
+ <span class="tooltip"><p>SQLite sqlite3_stmt</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li>
+ </ul>
+
+
+ <a title="Closing and Resetting" name="task_Closing and Resetting"></a>
+ <h3 class="subsubtitle task-title">Closing and Resetting</h3>
+
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/close">&ndash;&nbsp;close</a></code>
+ <span class="tooltip"><p>Close statement</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
+ <code><a href="#//api/name/reset">&ndash;&nbsp;reset</a></code>
+ <span class="tooltip"><p>Reset statement</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Properties" name="properties"></a>
+ <h2 class="subtitle subtitle-methods">Properties</h2>
+
+ <div class="section-method">
+ <a name="//api/name/query" title="query"></a>
+ <h3 class="subsubtitle method-title">query</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>SQL statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, retain) NSString *query</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/statement" title="statement"></a>
+ <h3 class="subsubtitle method-title">statement</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>SQLite sqlite3_stmt</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) sqlite3_stmt *statement</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection see-also-section">
+ <h4 class="method-subtitle">See Also</h4>
+ <ul>
+
+ <li><code><p><a href="http://www.sqlite.org/c3ref/stmt.html"><code>sqlite3_stmt</code></a></p></code></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/useCount" title="useCount"></a>
+ <h3 class="subsubtitle method-title">useCount</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Usage count</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>@property (atomic, assign) long useCount</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/close" title="close"></a>
+ <h3 class="subsubtitle method-title">close</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Close statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)close</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ <div class="section-method">
+ <a name="//api/name/reset" title="reset"></a>
+ <h3 class="subsubtitle method-title">reset</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Reset statement</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (void)reset</code></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">FMDatabase.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/css/styles.css b/html/css/styles.css
new file mode 100755
index 0000000..1ad2618
--- /dev/null
+++ b/html/css/styles.css
@@ -0,0 +1,588 @@
+body {
+ font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
+ font-size: 13px;
+}
+
+code {
+ font-family: Courier, Consolas, monospace;
+ font-size: 13px;
+ color: #666;
+}
+
+pre {
+ font-family: Courier, Consolas, monospace;
+ font-size: 13px;
+ line-height: 18px;
+ tab-interval: 0.5em;
+ border: 1px solid #C7CFD5;
+ background-color: #F1F5F9;
+ color: #666;
+ padding: 0.3em 1em;
+}
+
+ul {
+ list-style-type: square;
+}
+
+li {
+ margin-bottom: 10px;
+}
+
+a, a code {
+ text-decoration: none;
+ color: #36C;
+}
+
+a:hover, a:hover code {
+ text-decoration: underline;
+ color: #36C;
+}
+
+h2 {
+ border-bottom: 1px solid #8391A8;
+ color: #3C4C6C;
+ font-size: 187%;
+ font-weight: normal;
+ margin-top: 1.75em;
+ padding-bottom: 2px;
+}
+
+table {
+ margin-bottom: 4em;
+ border-collapse:collapse;
+ vertical-align: middle;
+}
+
+td {
+ border: 1px solid #9BB3CD;
+ padding: .667em;
+ font-size: 100%;
+}
+
+th {
+ border: 1px solid #9BB3CD;
+ padding: .3em .667em .3em .667em;
+ background: #93A5BB;
+ font-size: 103%;
+ font-weight: bold;
+ color: white;
+ text-align: left;
+}
+
+/* @group Common page elements */
+
+#top_header {
+ height: 91px;
+ left: 0;
+ min-width: 598px;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 900;
+}
+
+#footer {
+ clear: both;
+ padding-top: 20px;
+ text-align: center;
+}
+
+#contents, #overview_contents {
+ -webkit-overflow-scrolling: touch;
+ border-top: 1px solid #2B334F;
+ position: absolute;
+ top: 91px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ overflow-x: hidden;
+ overflow-y: auto;
+ padding-left: 2em;
+ padding-right: 2em;
+ padding-top: 1em;
+ min-width: 550px;
+}
+
+#contents.isShowingTOC {
+ left: 230px;
+ min-width: 320px;
+}
+
+.copyright {
+ font-size: 12px;
+}
+
+.generator {
+ font-size: 11px;
+}
+
+.main-navigation ul li {
+ display: inline;
+ margin-left: 15px;
+ list-style: none;
+}
+
+.navigation-top {
+ clear: both;
+ float: right;
+}
+
+.navigation-bottom {
+ clear: both;
+ float: right;
+ margin-top: 20px;
+ margin-bottom: -10px;
+}
+
+.open > .disclosure {
+ background-image: url("../img/disclosure_open.png");
+}
+
+.disclosure {
+ background: url("../img/disclosure.png") no-repeat scroll 0 0;
+}
+
+.disclosure, .nodisclosure {
+ display: inline-block;
+ height: 8px;
+ margin-right: 5px;
+ position: relative;
+ width: 9px;
+}
+
+/* @end */
+
+/* @group Header */
+
+#top_header #library {
+ background: url("../img/library_background.png") repeat-x 0 0 #485E78;
+ background-color: #ccc;
+ height: 35px;
+ font-size: 115%;
+}
+
+#top_header #library #libraryTitle {
+ color: #FFFFFF;
+ margin-left: 15px;
+ text-shadow: 0 -1px 0 #485E78;
+ top: 8px;
+ position: absolute;
+}
+
+#libraryTitle {
+ left: 0;
+}
+
+#top_header #library #developerHome {
+ color: #92979E;
+ right: 15px;
+ top: 8px;
+ position: absolute;
+}
+
+#top_header #library a:hover {
+ text-decoration: none;
+}
+
+#top_header #title {
+ background: url("../img/title_background.png") repeat-x 0 0 #8A98A9;
+ border-bottom: 1px solid #B6B6B6;
+ height: 25px;
+ overflow: hidden;
+}
+
+#top_header h1 {
+ font-size: 115%;
+ font-weight: normal;
+ margin: 0;
+ padding: 3px 0 2px;
+ text-align: center;
+ text-shadow: 0 1px 0 #D5D5D5;
+ white-space: nowrap;
+}
+
+#headerButtons {
+ background-color: #D8D8D8;
+ background-image: url("../img/button_bar_background.png");
+ border-bottom: 1px solid #EDEDED;
+ border-top: 1px solid #2B334F;
+ font-size: 8pt;
+ height: 28px;
+ left: 0;
+ list-style: none outside none;
+ margin: 0;
+ overflow: hidden;
+ padding: 0;
+ position: absolute;
+ right: 0;
+ top: 61px;
+}
+
+#headerButtons li {
+ background-repeat: no-repeat;
+ display: inline;
+ margin-top: 0;
+ margin-bottom: 0;
+ padding: 0;
+}
+
+#toc_button button {
+ border-color: #ACACAC;
+ border-style: none solid none none;
+ border-width: 0 1px 0 0;
+ height: 28px;
+ margin: 0;
+ padding-left: 30px;
+ text-align: left;
+ width: 230px;
+}
+
+li#jumpto_button {
+ left: 230px;
+ margin-left: 0;
+ position: absolute;
+}
+
+li#jumpto_button select {
+ height: 22px;
+ margin: 5px 2px 0 10px;
+ max-width: 300px;
+}
+
+/* @end */
+
+/* @group Table of contents */
+
+#tocContainer.isShowingTOC {
+ border-right: 1px solid #ACACAC;
+ display: block;
+ overflow-x: hidden;
+ overflow-y: auto;
+ padding: 0;
+}
+
+#tocContainer {
+ background-color: #E4EBF7;
+ border-top: 1px solid #2B334F;
+ bottom: 0;
+ display: none;
+ left: 0;
+ overflow: hidden;
+ position: absolute;
+ top: 91px;
+ width: 229px;
+}
+
+#tocContainer > ul#toc {
+ font-size: 11px;
+ margin: 0;
+ padding: 12px 0 18px;
+ width: 209px;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+}
+
+#tocContainer > ul#toc > li {
+ margin: 0;
+ padding: 0 0 7px 30px;
+ text-indent: -15px;
+}
+
+#tocContainer > ul#toc > li > .sectionName a {
+ color: #000000;
+ font-weight: bold;
+}
+
+#tocContainer > ul#toc > li > .sectionName a:hover {
+ text-decoration: none;
+}
+
+#tocContainer > ul#toc li.children > ul {
+ display: none;
+ height: 0;
+}
+
+#tocContainer > ul#toc > li > ul {
+ margin: 0;
+ padding: 0;
+}
+
+#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li {
+ margin-left: 0;
+ margin-bottom: 0;
+ padding-left: 15px;
+}
+
+#tocContainer > ul#toc > li ul {
+ list-style: none;
+ margin-right: 0;
+ padding-right: 0;
+}
+
+#tocContainer > ul#toc li.children.open > ul {
+ display: block;
+ height: auto;
+ margin-left: -15px;
+ padding-left: 0;
+}
+
+#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li {
+ margin-left: 0;
+ padding-left: 15px;
+}
+
+#tocContainer li ul li {
+ margin-top: 0.583em;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+#tocContainer li ul li span.sectionName {
+ white-space: normal;
+}
+
+#tocContainer > ul#toc > li > ul > li > .sectionName a {
+ font-weight: bold;
+}
+
+#tocContainer > ul#toc > li > ul a {
+ color: #4F4F4F;
+}
+
+/* @end */
+
+/* @group Index formatting */
+
+.index-title {
+ font-size: 13px;
+ font-weight: normal;
+}
+
+.index-column {
+ float: left;
+ width: 30%;
+ min-width: 200px;
+ font-size: 11px;
+}
+
+.index-column ul {
+ margin: 8px 0 0 0;
+ padding: 0;
+ list-style: none;
+}
+
+.index-column ul li {
+ margin: 0 0 3px 0;
+ padding: 0;
+}
+
+.hierarchy-column {
+ min-width: 400px;
+}
+
+.hierarchy-column ul {
+ margin: 3px 0 0 15px;
+}
+
+.hierarchy-column ul li {
+ list-style-type: square;
+}
+
+/* @end */
+
+/* @group Common formatting elements */
+
+.title {
+ font-weight: normal;
+ font-size: 215%;
+ margin-top:0;
+}
+
+.subtitle {
+ font-weight: normal;
+ font-size: 180%;
+ color: #3C4C6C;
+ border-bottom: 1px solid #5088C5;
+}
+
+.subsubtitle {
+ font-weight: normal;
+ font-size: 145%;
+ height: 0.7em;
+}
+
+.note {
+ border: 1px solid #5088C5;
+ background-color: white;
+ margin: 1.667em 0 1.75em 0;
+ padding: 0 .667em .083em .750em;
+}
+
+.warning {
+ border: 1px solid #5088C5;
+ background-color: #F0F3F7;
+ margin-bottom: 0.5em;
+ padding: 0.3em 0.8em;
+}
+
+.bug {
+ border: 1px solid #000;
+ background-color: #ffffcc;
+ margin-bottom: 0.5em;
+ padding: 0.3em 0.8em;
+}
+
+.deprecated {
+ color: #F60425;
+}
+
+/* @end */
+
+/* @group Common layout */
+
+.section {
+ margin-top: 3em;
+}
+
+/* @end */
+
+/* @group Object specification section */
+
+.section-specification {
+ margin-left: 2.5em;
+ margin-right: 2.5em;
+ font-size: 12px;
+}
+
+.section-specification table {
+ margin-bottom: 0em;
+ border-top: 1px solid #d6e0e5;
+}
+
+.section-specification td {
+ vertical-align: top;
+ border-bottom: 1px solid #d6e0e5;
+ border-left-width: 0px;
+ border-right-width: 0px;
+ border-top-width: 0px;
+ padding: .6em;
+}
+
+.section-specification .specification-title {
+ font-weight: bold;
+}
+
+/* @end */
+
+/* @group Tasks section */
+
+.task-list {
+ list-style-type: none;
+ padding-left: 0px;
+}
+
+.task-list li {
+ margin-bottom: 3px;
+}
+
+.task-item-suffix {
+ color: #996;
+ font-size: 12px;
+ font-style: italic;
+ margin-left: 0.5em;
+}
+
+span.tooltip span.tooltip {
+ font-size: 1.0em;
+ display: none;
+ padding: 0.3em;
+ border: 1px solid #aaa;
+ background-color: #fdfec8;
+ color: #000;
+ text-align: left;
+}
+
+span.tooltip:hover span.tooltip {
+ display: block;
+ position: absolute;
+ margin-left: 2em;
+}
+
+/* @end */
+
+/* @group Method section */
+
+.section-method {
+ margin-top: 2.3em;
+}
+
+.method-title {
+ margin-bottom: 1.5em;
+}
+
+.method-subtitle {
+ margin-top: 0.7em;
+ margin-bottom: 0.2em;
+}
+
+.method-subsection p {
+ margin-top: 0.4em;
+ margin-bottom: 0.8em;
+}
+
+.method-declaration {
+ margin-top:1.182em;
+ margin-bottom:.909em;
+}
+
+.method-declaration code {
+ font:14px Courier, Consolas, monospace;
+ color:#000;
+}
+
+.declaration {
+ color: #000;
+}
+
+.argument-def {
+ margin-top: 0.3em;
+ margin-bottom: 0.3em;
+}
+
+.argument-def dd {
+ margin-left: 1.25em;
+}
+
+.see-also-section ul {
+ list-style-type: none;
+ padding-left: 0px;
+ margin-top: 0;
+}
+
+.see-also-section li {
+ margin-bottom: 3px;
+}
+
+.declared-in-ref {
+ color: #666;
+}
+
+#tocContainer.hideInXcode {
+ display: none;
+ border: 0px solid black;
+}
+
+#top_header.hideInXcode {
+ display: none;
+}
+
+#contents.hideInXcode {
+ border: 0px solid black;
+ top: 0px;
+ left: 0px;
+}
+
+/* @end */
+
diff --git a/html/css/stylesPrint.css b/html/css/stylesPrint.css
new file mode 100644
index 0000000..dc54cd2
--- /dev/null
+++ b/html/css/stylesPrint.css
@@ -0,0 +1,22 @@
+
+header {
+ display: none;
+}
+
+div.main-navigation, div.navigation-top {
+ display: none;
+}
+
+div#overview_contents, div#contents.isShowingTOC, div#contents {
+ overflow: visible;
+ position: relative;
+ top: 0px;
+ border: none;
+ left: 0;
+}
+#tocContainer.isShowingTOC {
+ display: none;
+}
+nav {
+ display: none;
+} \ No newline at end of file
diff --git a/html/hierarchy.html b/html/hierarchy.html
new file mode 100644
index 0000000..64d999a
--- /dev/null
+++ b/html/hierarchy.html
@@ -0,0 +1,90 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>FMDB Hierarchy</title>
+ <link rel="stylesheet" type="text/css" href="css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="index.html">FMDB </a></h1>
+ <a id="developerHome" href="index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMDB Hierarchy</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar"></ul>
+ </header>
+ <article>
+ <div id="overview_contents" role="main">
+ <div class="main-navigation navigation-top">
+ <a href="index.html">Previous</a>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMDB Hierarchy</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="index-column hierarchy-column">
+ <h2 class="index-title">Class Hierarchy</h2>
+
+ <ul>
+
+ <li>NSObject
+ <ul>
+
+ <li><a href="Classes/FMDatabase.html">FMDatabase</a></li>
+
+ <li><a href="Classes/FMDatabasePool.html">FMDatabasePool</a></li>
+
+ <li><a href="Classes/FMDatabaseQueue.html">FMDatabaseQueue</a></li>
+
+ <li><a href="Classes/FMResultSet.html">FMResultSet</a></li>
+
+ <li><a href="Classes/FMStatement.html">FMStatement</a></li>
+
+ </ul>
+</li>
+
+ </ul>
+
+ </div>
+
+
+
+ <div class="index-column">
+
+
+ <h2 class="index-title">Category References</h2>
+ <ul>
+
+ <li><a href="Categories/FMDatabase+FMDatabaseAdditions.html">FMDatabase(FMDatabaseAdditions)</a></li>
+
+ </ul>
+
+ </div>
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <a href="index.html">Previous</a>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+
+ </div>
+ </div>
+ </div>
+ </article>
+ </body>
+</html> \ No newline at end of file
diff --git a/html/img/button_bar_background.png b/html/img/button_bar_background.png
new file mode 100644
index 0000000..abea717
--- /dev/null
+++ b/html/img/button_bar_background.png
Binary files differ
diff --git a/html/img/disclosure.png b/html/img/disclosure.png
new file mode 100644
index 0000000..4c5cbf4
--- /dev/null
+++ b/html/img/disclosure.png
Binary files differ
diff --git a/html/img/disclosure_open.png b/html/img/disclosure_open.png
new file mode 100644
index 0000000..82396fe
--- /dev/null
+++ b/html/img/disclosure_open.png
Binary files differ
diff --git a/html/img/library_background.png b/html/img/library_background.png
new file mode 100644
index 0000000..7b3486b
--- /dev/null
+++ b/html/img/library_background.png
Binary files differ
diff --git a/html/img/title_background.png b/html/img/title_background.png
new file mode 100644
index 0000000..3bf0bb1
--- /dev/null
+++ b/html/img/title_background.png
Binary files differ
diff --git a/html/index.html b/html/index.html
new file mode 100644
index 0000000..9918fa4
--- /dev/null
+++ b/html/index.html
@@ -0,0 +1,86 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>FMDB Reference</title>
+ <link rel="stylesheet" type="text/css" href="css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.1 (build 858)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="index.html">FMDB </a></h1>
+ <a id="developerHome" href="index.html">ccgus</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">FMDB Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar"></ul>
+ </header>
+ <article>
+ <div id="overview_contents" role="main">
+ <div class="main-navigation navigation-top">
+ <a href="hierarchy.html">Next</a>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">FMDB Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+
+
+
+
+ <div class="index-column">
+ <h2 class="index-title">Class References</h2>
+ <ul>
+
+ <li><a href="Classes/FMDatabase.html">FMDatabase</a></li>
+
+ <li><a href="Classes/FMDatabasePool.html">FMDatabasePool</a></li>
+
+ <li><a href="Classes/FMDatabaseQueue.html">FMDatabaseQueue</a></li>
+
+ <li><a href="Classes/FMResultSet.html">FMResultSet</a></li>
+
+ <li><a href="Classes/FMStatement.html">FMStatement</a></li>
+
+ </ul>
+ </div>
+
+
+
+ <div class="index-column">
+
+
+ <h2 class="index-title">Category References</h2>
+ <ul>
+
+ <li><a href="Categories/FMDatabase+FMDatabaseAdditions.html">FMDatabase(FMDatabaseAdditions)</a></li>
+
+ </ul>
+
+ </div>
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <a href="hierarchy.html">Next</a>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2013 ccgus. All rights reserved. (Last updated: 2013-06-07)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 858)</a>.</span></p>
+
+
+ </div>
+ </div>
+ </div>
+ </article>
+ </body>
+</html> \ No newline at end of file
diff --git a/index.html b/index.html
index e872bd9..8779e14 100644
--- a/index.html
+++ b/index.html
@@ -34,6 +34,8 @@
<h1>FMDB</h1>
<p>This is an Objective-C wrapper around SQLite: <a href="http://sqlite.org/">http://sqlite.org/</a></p>
+
+<p>Also refer to the <a href="html/index.html">FMDB Class Reference</a> documentation.</p>
<h2>The FMDB Mailing List:</h2>