Skip to content

Commit

Permalink
DBmysqlIterator implements Countable
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and trasher committed Jul 10, 2017
1 parent 6c37a67 commit 5493abd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/devapi/database/dbiterator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Provide a simple request generator:
* without having to quote table and field name
* without having to take care of freeing resources
* iterable
* countable

Basic usage
^^^^^^^^^^^
Expand All @@ -26,6 +27,11 @@ Basic usage
// ... work on a single row
}
$req = $DB->request(...);
if (count($req)) {
// ... work on result
}
Arguments
^^^^^^^^^

Expand Down

0 comments on commit 5493abd

Please sign in to comment.