Skip to content

Commit

Permalink
doc: clarify expandedSQL behavior
Browse files Browse the repository at this point in the history
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: #54685
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
tniessen authored and aduh95 committed Sep 12, 2024
1 parent 68e45b4 commit 62b0007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])`
Expand Down

0 comments on commit 62b0007

Please sign in to comment.