mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-02 07:54:19 +01:00
bind/js: Add bind method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user