mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-06 01:34:21 +01:00
support more params format and iterable
This commit is contained in:
@@ -264,8 +264,11 @@ class Statement {
|
||||
*
|
||||
* @param bindParameters - The bind parameters for executing the statement.
|
||||
*/
|
||||
iterate(...bindParameters) {
|
||||
return this.stmt.iterate(bindParameters.flat());
|
||||
*iterate(...bindParameters) {
|
||||
// revisit this solution when https://github.com/napi-rs/napi-rs/issues/2574 is fixed
|
||||
for (const row of this.stmt.iterate(bindParameters.flat())) {
|
||||
yield row;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user