Skip to content

Commit d569af8

Browse files
committed
Update api.html
1 parent 4c78c1e commit d569af8

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

docs/api.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
<li><a href="#db">DB</a>
6767
<ul class="nav">
6868
<li><a href="#db-construct">__construct()</a></li>
69+
<li><a href="#db-autoCommit">autoCommit()</a></li>
70+
<li><a href="#db-begin">begin()</a></li>
71+
<li><a href="#db-commit">commit()</a></li>
6972
<li><a href="#db-config">config()</a></li>
7073
<li><a href="#db-count">count()</a></li>
7174
<li><a href="#db-debug">debug()</a></li>
@@ -84,6 +87,7 @@
8487
<li><a href="#db-param">param()</a></li>
8588
<li><a href="#db-raw">raw()</a></li>
8689
<li><a href="#db-reset">reset()</a></li>
90+
<li><a href="#db-rollback">rollback()</a></li>
8791
<li><a href="#db-select">select()</a></li>
8892
<li><a href="#db-table">table()</a></li>
8993
<li><a href="#db-truncate">truncate()</a></li>
@@ -135,6 +139,21 @@ <h3 class="h4" id="db-construct">__construct()</h3>
135139
<p>Creates an instance of <code>DB</code> class.</p>
136140
<pre class="prettyprint">$db = new DB();</pre>
137141
</section>
142+
<section>
143+
<h3 class="h4" id="db-autoCommit">autoCommit(int $value)</h3>
144+
<p>Disables or enables the default autocommit mode for the current connection.</p>
145+
<pre class="prettyprint">$db->autoCommit(1);</pre>
146+
</section>
147+
<section>
148+
<h3 class="h4" id="db-begin">begin()</h3>
149+
<p>Begin a new transaction.</p>
150+
<pre class="prettyprint">$db->begin();</pre>
151+
</section>
152+
<section>
153+
<h3 class="h4" id="db-commit">commit()</h3>
154+
<p>Commits the current transaction, making its changes permanent.</p>
155+
<pre class="prettyprint">$db->commit();</pre>
156+
</section>
138157
<section>
139158
<h3 class="h4" id="db-config">config()</h3>
140159
<p>Defines the path to the configuration file.</p>
@@ -231,6 +250,11 @@ <h3 class="h4" id="db-reset">reset()</h3>
231250
<p>Reset all query builder's clauses.</p>
232251
<pre class="prettyprint">$db->reset();</pre>
233252
</section>
253+
<section>
254+
<h3 class="h4" id="db-rollback">rollback()</h3>
255+
<p>Rolls back the current transaction, canceling its changes.</p>
256+
<pre class="prettyprint">$db->rollback();</pre>
257+
</section>
234258
<section>
235259
<h3 class="h4" id="db-select">select(string $value=null)</h3>
236260
<p>Add a generic <code>SELECT</code> clause.</p>

0 commit comments

Comments
 (0)