mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
process errors
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user