added capability to pass WriteParams to delete

This commit is contained in:
albertlockett
2024-07-18 15:36:33 -03:00
parent 1c229a90ea
commit 1415d1a23a
5 changed files with 10 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ impl Table {
#[napi(catch_unwind)]
pub async fn delete(&self, predicate: String) -> napi::Result<()> {
self.inner_ref()?.delete(&predicate).await.map_err(|e| {
self.inner_ref()?.delete(&predicate, None).await.map_err(|e| {
napi::Error::from_reason(format!(
"Failed to delete rows in table {}: predicate={}",
self.name, e