Return the expanded SQL string for the prepared statement.
Internally, this calls sqlite3_expanded_sql()
on the underlying sqlite3_stmt
.
Symbol
Return the expanded SQL string for the prepared statement.
Internally, this calls sqlite3_expanded_sql()
on the underlying sqlite3_stmt
.
const stmt = db.prepare("SELECT * FROM foo WHERE bar = ?", "baz");
console.log(stmt.toString());
// => "SELECT * FROM foo WHERE bar = 'baz'"
console.log(stmt);
// => "SELECT * FROM foo WHERE bar = 'baz'"