Skip to content

Commit ee1ec50

Browse files
authored
doc: add missing section for setReturnArrays in sqlite.md
PR-URL: #59074 Refs: #57542 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 229cc3b commit ee1ec50

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/api/sqlite.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,19 @@ added:
692692
By default, if an unknown name is encountered while binding parameters, an
693693
exception is thrown. This method allows unknown named parameters to be ignored.
694694

695+
### `statement.setReturnArrays(enabled)`
696+
697+
<!-- YAML
698+
added:
699+
- v24.0.0
700+
- v22.16.0
701+
-->
702+
703+
* `enabled` {boolean} Enables or disables the return of query results as arrays.
704+
705+
When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
706+
of objects.
707+
695708
### `statement.setReadBigInts(enabled)`
696709

697710
<!-- YAML

0 commit comments

Comments
 (0)