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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
tniessen authored Sep 4, 2024
1 parent a63882b commit 6c6a933
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 6c6a933

Please sign in to comment.