doc: clarify expandedSQL behavior

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 <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Tobias Nießen authored and GitHub committed 2024-09-04 19:30:00 +00:00
1 parent a63882bece
commit 6c6a9338cb
1 file changed
+2 -1
+2 -1
View File
@@ -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])`