From b5e071232910a8f1577d96e23e9ef3b0892d3745 Mon Sep 17 00:00:00 2001 From: mike-git374 <217764531+mike-git374@users.noreply.github.com> Date: Sat, 21 Feb 2026 13:43:24 -0700 Subject: [PATCH] sqlite: remove statement.set* functions --- doc/api/sqlite.md | 67 ----- src/node_sqlite.cc | 79 ------ src/node_sqlite.h | 6 - test/parallel/test-sqlite-named-parameters.js | 66 ----- test/parallel/test-sqlite-statement-sync.js | 239 +----------------- 5 files changed, 9 insertions(+), 448 deletions(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 5cafacdc7623e9..b1080d3acc9f41 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -933,73 +933,6 @@ This method executes a prepared statement and returns an object summarizing the resulting changes. The prepared statement [parameters are bound][] using the values in `namedParameters` and `anonymousParameters`. -### `statement.setAllowBareNamedParameters(enabled)` - - - -* `enabled` {boolean} Enables or disables support for binding named parameters - without the prefix character. - -The names of SQLite parameters begin with a prefix character. By default, -`node:sqlite` requires that this prefix character is present when binding -parameters. However, with the exception of dollar sign character, these -prefix characters also require extra quoting when used in object keys. - -To improve ergonomics, this method can be used to also allow bare named -parameters, which do not require the prefix character in JavaScript code. There -are several caveats to be aware of when enabling bare named parameters: - -* The prefix character is still required in SQL. -* The prefix character is still allowed in JavaScript. In fact, prefixed names - will have slightly better binding performance. -* Using ambiguous named parameters, such as `$k` and `@k`, in the same prepared - statement will result in an exception as it cannot be determined how to bind - a bare name. - -### `statement.setAllowUnknownNamedParameters(enabled)` - - - -* `enabled` {boolean} Enables or disables support for unknown named parameters. - -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)` - - - -* `enabled` {boolean} Enables or disables the use of `BigInt`s when reading - `INTEGER` fields from the database. - -When reading from the database, SQLite `INTEGER`s are mapped to JavaScript -numbers by default. However, SQLite `INTEGER`s can store values larger than -JavaScript numbers are capable of representing. In such cases, this method can -be used to read `INTEGER` data using JavaScript `BigInt`s. This method has no -impact on database write operations where numbers and `BigInt`s are both -supported at all times. - ### `statement.sourceSQL`