mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00:00
bind/js: Add bind method
This commit is contained in:
parent
bce4ac45db
commit
799f4149c5
4 changed files with 79 additions and 10 deletions
|
@ -224,6 +224,16 @@ class Statement {
|
|||
columns() {
|
||||
return this.stmt.columns();
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds the given parameters to the statement _permanently_
|
||||
*
|
||||
* @param bindParameters - The bind parameters for binding the statement.
|
||||
* @returns this - Statement with binded parameters
|
||||
*/
|
||||
bind(...bindParameters) {
|
||||
return this.stmt.bind(bindParameters.flat());
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.Database = Database;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue