Skip to content

Commit 3ff275a

Browse files
tniessenlouwers
authored andcommitted
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: nodejs#54685 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 1e875c0 commit 3ff275a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/sqlite.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ added: v22.5.0
266266
* Returns: {string} The source SQL expanded to include parameter values.
267267

268268
This method returns the source SQL of the prepared statement with parameter
269-
placeholders replaced by values. This method is a wrapper around
269+
placeholders replaced by the values that were used during the most recent
270+
execution of this prepared statement. This method is a wrapper around
270271
[`sqlite3_expanded_sql()`][].
271272

272273
### `statement.get([namedParameters][, ...anonymousParameters])`

0 commit comments

Comments
 (0)