mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
a63882bece
commit
6c6a9338cb
1 file changed
+2
-1
+2
-1
@@ -198,7 +198,8 @@ added: v22.5.0
|
|||||||
* Returns: {string} The source SQL expanded to include parameter values.
|
* Returns: {string} The source SQL expanded to include parameter values.
|
||||||
|
|
||||||
This method returns the source SQL of the prepared statement with parameter
|
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()`][].
|
[`sqlite3_expanded_sql()`][].
|
||||||
|
|
||||||
### `statement.get([namedParameters][, ...anonymousParameters])`
|
### `statement.get([namedParameters][, ...anonymousParameters])`
|
||||||
|
|||||||
Reference in new issue
Block a user