Skip to content

Commit

Permalink
Document of transaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Jan 28, 2019
1 parent cbbc7a3 commit 0e61a49
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ which supports iterator and parameter binding when using "WHERE IN" statement.

* [Basic Usage](#basic-usage)

* [Transaction](#transaction)

* [Iterator](#iterator)


Expand Down Expand Up @@ -242,6 +244,21 @@ $DB->closeConnection();
?>
```

Transaction
------------
```php
<?php
try {
$DB->beginTransaction();
var_dump($DB->inTransaction()); // print "true"
$DB->commit();
} catch(Exception $ex) {
// handle Error
$DB->rollBack();
}
?>
```

Iterator
------------

Expand Down

0 comments on commit 0e61a49

Please sign in to comment.