We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbbc7a3 commit 0e61a49Copy full SHA for 0e61a49
README.md
@@ -12,6 +12,8 @@ which supports iterator and parameter binding when using "WHERE IN" statement.
12
13
* [Basic Usage](#basic-usage)
14
15
+* [Transaction](#transaction)
16
+
17
* [Iterator](#iterator)
18
19
@@ -242,6 +244,21 @@ $DB->closeConnection();
242
244
?>
243
245
```
246
247
+Transaction
248
+------------
249
+```php
250
+<?php
251
+try {
252
+ $DB->beginTransaction();
253
+ var_dump($DB->inTransaction()); // print "true"
254
+ $DB->commit();
255
+} catch(Exception $ex) {
256
+ // handle Error
257
+ $DB->rollBack();
258
+}
259
+?>
260
+```
261
262
Iterator
263
------------
264
0 commit comments