bind/js: Add close metho to Database

This commit is contained in:
Diego Reis 2025-05-25 14:47:04 -03:00
parent f1018d97a4
commit 1ff454853b

View file

@ -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(())
}
}