From 8eaa19a5846a0b5c0d012aa47fd61adab83a4d43 Mon Sep 17 00:00:00 2001 From: Edy Silva Date: Thu, 17 Jul 2025 12:57:08 -0300 Subject: [PATCH] doc: add missing section for `setReturnArrays` in `sqlite.md` PR-URL: https://github.com/nodejs/node/pull/59074 Refs: https://github.com/nodejs/node/pull/57542 Reviewed-By: Chemi Atlow Reviewed-By: Luigi Pinca --- doc/api/sqlite.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 2c66898bf376c0..c9c1e0563dbc38 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -634,6 +634,17 @@ added: v22.15.0 By default, if an unknown name is encountered while binding parameters, an exception is thrown. This method allows unknown named parameters to be ignored. +### `statement.setReturnArrays(enabled)` + + + +* `enabled` {boolean} Enables or disables the return of query results as arrays. + +When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead +of objects. + ### `statement.setReadBigInts(enabled)`