fix(duckdb): add worker process isolation

This commit is contained in:
miracle authored and GitHub committed 2026-07-04 23:43:22 +08:00
1 parent 6529f22fed
commit 454457f191
26 files changed
+1694 -14

No files matched your search

+10
View File
@@ -2,5 +2,15 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
#[cfg(feature = "duckdb-bundled")]
if std::env::args().any(|arg| arg == "--duckdb-worker") {
let runtime = tokio::runtime::Runtime::new().expect("Failed to create DuckDB worker runtime");
if let Err(err) = runtime.block_on(dbx_core::db::duckdb_worker_runtime::run_stdio_worker()) {
eprintln!("DuckDB worker failed: {err}");
std::process::exit(1);
}
return;
}
dbx_lib::run();
}