Skip to content

Commit 997171d

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/api/sqlite.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,17 @@ added: v22.15.0
646646
By default, if an unknown name is encountered while binding parameters, an
647647
exception is thrown. This method allows unknown named parameters to be ignored.
648648

649+
### `statement.setReturnArrays(enabled)`
650+
651+
<!-- YAML
652+
added: v22.16.0
653+
-->
654+
655+
* `enabled` {boolean} Enables or disables the return of query results as arrays.
656+
657+
When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
658+
of objects.
659+
649660
### `statement.setReadBigInts(enabled)`
650661

651662
<!-- YAML

0 commit comments

Comments
 (0)