mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 04:54:21 +01:00
bind/js: Add close metho to Database
This commit is contained in:
@@ -124,8 +124,9 @@ impl Database {
|
||||
}
|
||||
|
||||
#[napi]
|
||||
pub fn close(&self) {
|
||||
todo!()
|
||||
pub fn close(&self) -> napi::Result<()> {
|
||||
self.conn.close().map_err(into_napi_error)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user