mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
bind/js: Add close metho to Database
This commit is contained in:
parent
f1018d97a4
commit
1ff454853b
1 changed files with 3 additions and 2 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue