From 6c6a9338cb9dbb61647afad586d57471b79b55be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 4 Sep 2024 21:30:00 +0200 Subject: [PATCH] doc: clarify expandedSQL behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I am not sure what exactly the primary use case is for this function given that the Node.js API is not designed for users to manually bind parameters of prepared statements, but this at least clarifies what the function does. PR-URL: /~https://github.com/nodejs/node/pull/54685 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- doc/api/sqlite.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 6d4a9aca451682..e0d102a1c473a4 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -198,7 +198,8 @@ added: v22.5.0 * Returns: {string} The source SQL expanded to include parameter values. This method returns the source SQL of the prepared statement with parameter -placeholders replaced by values. This method is a wrapper around +placeholders replaced by the values that were used during the most recent +execution of this prepared statement. This method is a wrapper around [`sqlite3_expanded_sql()`][]. ### `statement.get([namedParameters][, ...anonymousParameters])`