Skip to content

Commit dbeff60

Browse files
committed
feat(nc-upgrade-33): Add notes related to IResult::fetch/fetchAll
Signed-off-by: Carl Schwan <[email protected]>
1 parent 98c138e commit dbeff60

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Added Events
8888
Added APIs
8989
^^^^^^^^^^
9090

91-
- TBD
91+
- We now expose ``\OCP\DB\IResult::iterateAssociative``, ``\OCP\DB\IResult::iterateNumeric`` from doctrine/dbal.
92+
These two methods returns iterator and can be directly used in a `foreach` to iterate over a SQL query result.
9293

9394
Changed APIs
9495
^^^^^^^^^^^^
@@ -98,7 +99,11 @@ Changed APIs
9899
Deprecated APIs
99100
^^^^^^^^^^^^^^^
100101

101-
- TBD
102+
- The ``\OCP\DB\IResult::fetch`` and ``\OCP\DB\IResult::fetchAll`` are soft-deprecated. Instead you can use
103+
``\OCP\DB\IResult::fetchAssociative``, ``\OCP\DB\IResult::fetchNumeric`` and ``\OCP\DB\IResult::fetchOne``
104+
as replacement for ``\OCP\DB\IResult::fetch``; and ``\OCP\DB\IResult::fetchAllAssociative``,
105+
``\OCP\DB\IResult::fetchAllNumeric`` and ``\OCP\DB\IResult::fetchFirstColumn`` as replacement for
106+
``\OCP\DB\IResult::fetchAll``.
102107

103108
Removed APIs
104109
^^^^^^^^^^^^

0 commit comments

Comments
 (0)