process errors

This commit is contained in:
Anton Harniakou
2025-05-29 14:49:21 +03:00
parent 2ffeb87c85
commit defb2e52e8

View File

@@ -114,7 +114,13 @@ impl Database {
.collect();
to_js_value(&env, &row[0])
}
_ => todo!(),
limbo_core::StepResult::Done => Ok(env.get_undefined()?.into_unknown()),
limbo_core::StepResult::IO => todo!(),
step @ limbo_core::StepResult::Interrupt
| step @ limbo_core::StepResult::Busy => Err(napi::Error::new(
napi::Status::GenericFailure,
format!("{:?}", step),
)),
}
}
_ => stmt.run(env, None),