Skip to content

Commit

Permalink
Update api.html
Browse files Browse the repository at this point in the history
  • Loading branch information
riverside committed Nov 16, 2020
1 parent 4c78c1e commit d569af8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
<li><a href="#db">DB</a>
<ul class="nav">
<li><a href="#db-construct">__construct()</a></li>
<li><a href="#db-autoCommit">autoCommit()</a></li>
<li><a href="#db-begin">begin()</a></li>
<li><a href="#db-commit">commit()</a></li>
<li><a href="#db-config">config()</a></li>
<li><a href="#db-count">count()</a></li>
<li><a href="#db-debug">debug()</a></li>
Expand All @@ -84,6 +87,7 @@
<li><a href="#db-param">param()</a></li>
<li><a href="#db-raw">raw()</a></li>
<li><a href="#db-reset">reset()</a></li>
<li><a href="#db-rollback">rollback()</a></li>
<li><a href="#db-select">select()</a></li>
<li><a href="#db-table">table()</a></li>
<li><a href="#db-truncate">truncate()</a></li>
Expand Down Expand Up @@ -135,6 +139,21 @@ <h3 class="h4" id="db-construct">__construct()</h3>
<p>Creates an instance of <code>DB</code> class.</p>
<pre class="prettyprint">$db = new DB();</pre>
</section>
<section>
<h3 class="h4" id="db-autoCommit">autoCommit(int $value)</h3>
<p>Disables or enables the default autocommit mode for the current connection.</p>
<pre class="prettyprint">$db->autoCommit(1);</pre>
</section>
<section>
<h3 class="h4" id="db-begin">begin()</h3>
<p>Begin a new transaction.</p>
<pre class="prettyprint">$db->begin();</pre>
</section>
<section>
<h3 class="h4" id="db-commit">commit()</h3>
<p>Commits the current transaction, making its changes permanent.</p>
<pre class="prettyprint">$db->commit();</pre>
</section>
<section>
<h3 class="h4" id="db-config">config()</h3>
<p>Defines the path to the configuration file.</p>
Expand Down Expand Up @@ -231,6 +250,11 @@ <h3 class="h4" id="db-reset">reset()</h3>
<p>Reset all query builder's clauses.</p>
<pre class="prettyprint">$db->reset();</pre>
</section>
<section>
<h3 class="h4" id="db-rollback">rollback()</h3>
<p>Rolls back the current transaction, canceling its changes.</p>
<pre class="prettyprint">$db->rollback();</pre>
</section>
<section>
<h3 class="h4" id="db-select">select(string $value=null)</h3>
<p>Add a generic <code>SELECT</code> clause.</p>
Expand Down

0 comments on commit d569af8

Please sign in to comment.