mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-22 11:31:34 +00:00
Introduce the edge feature for backward compatibility
This commit is contained in:
@ -99,6 +99,15 @@ impl<'l> Database<'l> {
|
||||
}
|
||||
|
||||
impl<'l> Drop for Database<'l> {
|
||||
#[cfg(not(feature = "edge"))]
|
||||
#[inline]
|
||||
#[allow(unused_must_use)]
|
||||
fn drop(&mut self) {
|
||||
self.remove_busy_handler();
|
||||
unsafe { ffi::sqlite3_close(self.raw) };
|
||||
}
|
||||
|
||||
#[cfg(feature = "edge")]
|
||||
#[inline]
|
||||
#[allow(unused_must_use)]
|
||||
fn drop(&mut self) {
|
||||
|
Reference in New Issue
Block a user