|
66 | 66 | <li><a href="#db">DB</a> |
67 | 67 | <ul class="nav"> |
68 | 68 | <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> |
69 | 72 | <li><a href="#db-config">config()</a></li> |
70 | 73 | <li><a href="#db-count">count()</a></li> |
71 | 74 | <li><a href="#db-debug">debug()</a></li> |
|
84 | 87 | <li><a href="#db-param">param()</a></li> |
85 | 88 | <li><a href="#db-raw">raw()</a></li> |
86 | 89 | <li><a href="#db-reset">reset()</a></li> |
| 90 | + <li><a href="#db-rollback">rollback()</a></li> |
87 | 91 | <li><a href="#db-select">select()</a></li> |
88 | 92 | <li><a href="#db-table">table()</a></li> |
89 | 93 | <li><a href="#db-truncate">truncate()</a></li> |
@@ -135,6 +139,21 @@ <h3 class="h4" id="db-construct">__construct()</h3> |
135 | 139 | <p>Creates an instance of <code>DB</code> class.</p> |
136 | 140 | <pre class="prettyprint">$db = new DB();</pre> |
137 | 141 | </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> |
138 | 157 | <section> |
139 | 158 | <h3 class="h4" id="db-config">config()</h3> |
140 | 159 | <p>Defines the path to the configuration file.</p> |
@@ -231,6 +250,11 @@ <h3 class="h4" id="db-reset">reset()</h3> |
231 | 250 | <p>Reset all query builder's clauses.</p> |
232 | 251 | <pre class="prettyprint">$db->reset();</pre> |
233 | 252 | </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> |
234 | 258 | <section> |
235 | 259 | <h3 class="h4" id="db-select">select(string $value=null)</h3> |
236 | 260 | <p>Add a generic <code>SELECT</code> clause.</p> |
|
0 commit comments