mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
bind/js: Remove broken try/catch
This commit is contained in:
@@ -119,7 +119,7 @@ impl Database {
|
||||
|
||||
#[napi]
|
||||
pub fn exec(&self, sql: String) -> napi::Result<()> {
|
||||
self.conn.query(sql).map_err(into_napi_error)?;
|
||||
self.conn.execute(sql).map_err(into_napi_error)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user