MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / preload_runtime_side_modules

Function preload_runtime_side_modules

src/pglite/postgres_mod.rs:2535–2562  ·  view source on GitHub ↗
(
    runtime: &TokioRuntime,
    engine: &Engine,
    module_cache: &Arc<SharedCache>,
    runtime_root: &Path,
)

Source from the content-addressed store, hash-verified

2533}
2534
2535fn preload_runtime_side_modules(
2536 runtime: &TokioRuntime,
2537 engine: &Engine,
2538 module_cache: &Arc<SharedCache>,
2539 runtime_root: &Path,
2540) -> Result<()> {
2541 let _phase = timing::phase("wasix.seed_runtime_side_modules");
2542 let lib_dir = runtime_root.join("lib/postgresql");
2543 for (file_name, artifact_name) in RUNTIME_SIDE_MODULES {
2544 let library = lib_dir.join(file_name);
2545 ensure!(
2546 library.exists(),
2547 "runtime support module '{}' is not installed at {}",
2548 file_name,
2549 library.display()
2550 );
2551
2552 seed_side_module_cache(
2553 runtime,
2554 engine,
2555 module_cache,
2556 &library,
2557 artifact_name,
2558 &format!("runtime support module '{file_name}'"),
2559 )?;
2560 }
2561 Ok(())
2562}
2563
2564#[cfg(feature = "extensions")]
2565fn preload_installed_extension_side_modules(

Callers 3

preload_moduleMethod · 0.85
run_split_initdbFunction · 0.85

Calls 3

phaseFunction · 0.85
seed_side_module_cacheFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected