mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
bind/js: Add method all()
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user