bind/js: Add method all()

This commit is contained in:
Diego Reis
2025-05-08 15:17:50 -03:00
parent 559263ce3c
commit 64874bca4e

View File

@@ -197,6 +197,14 @@ impl Statement {
todo!()
}
#[napi]
pub fn all(&self, env: Env) -> napi::Result<JsUnknown> {
let mut stmt = self.inner.borrow_mut();
stmt.reset();
self.internal_all(env)
}
fn internal_all(&self, env: Env) -> napi::Result<JsUnknown> {
let mut stmt = self.inner.borrow_mut();