implement mirroring object store (#537)

This PR implements a mirroring object store and allows and table to be
mirrored to a local path when param `mirroredStore` is set in the url
This commit is contained in:
Rob Meng
2023-10-04 21:23:34 -04:00
committed by GitHub
parent c58da8fc8a
commit 1db66c6980
10 changed files with 710 additions and 25 deletions

View File

@@ -195,7 +195,7 @@ fn database_open_table(mut cx: FunctionContext) -> JsResult<JsPromise> {
let (deferred, promise) = cx.promise();
rt.spawn(async move {
let table_rst = database.open_table_with_params(&table_name, &params).await;
let table_rst = database.open_table_with_params(&table_name, params).await;
deferred.settle_with(&channel, move |mut cx| {
let js_table = JsTable::from(table_rst.or_throw(&mut cx)?);