summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-07-22 14:56:10 +0200
committerAndrey Andreev <narf@devilix.net>2016-07-22 14:56:10 +0200
commit19ca6442222a316ca2400252a8917426046a3eda (patch)
tree7391349185e2e4f1ef72836ca18bb38c58bb5784 /user_guide_src/source/database
parentd9a4063f87d82836e7d7fe340c5c962e0332e2e5 (diff)
[ci skip] Add affected_rows() to db reference docs
Diffstat (limited to 'user_guide_src/source/database')
-rw-r--r--user_guide_src/source/database/db_driver_reference.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/user_guide_src/source/database/db_driver_reference.rst b/user_guide_src/source/database/db_driver_reference.rst
index 1ecd38968..aaca90840 100644
--- a/user_guide_src/source/database/db_driver_reference.rst
+++ b/user_guide_src/source/database/db_driver_reference.rst
@@ -116,6 +116,15 @@ This article is intended to be a reference for them.
for use when you don't need to get a result object or to
just send a query to the database and not care for the result.
+ .. php:method:: affected_rows()
+ :returns: Number of rows affected
+ :rtype: int
+
+ Returns the number of rows *changed* by the last executed query.
+
+ Useful for checking how much rows were created, updated or deleted
+ during the last executed query.
+
.. php:method:: trans_strict([$mode = TRUE])
:param bool $mode: Strict mode flag