MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / write_empty_global_db_schema

Function write_empty_global_db_schema

tests/common/mod.rs:596–598  ·  view source on GitHub ↗

Writes an empty `GlobalDb`-schema store at `db_path` from the cached per-process template, so later opens (fixture seeding, dashboard server startup) find an existing DB and skip the full schema creation — a large fixed cost on Windows. The first call in a process pays one real schema creation to build the template; every further store is a file copy.

(db_path: &Path)

Source from the content-addressed store, hash-verified

594/// fixed cost on Windows. The first call in a process pays one real schema
595/// creation to build the template; every further store is a file copy.
596pub async fn write_empty_global_db_schema(db_path: &Path) {
597 seed_lcm_db_from_template(db_path).await;
598}
599
600async fn seed_lcm_db_from_template(db_path: &Path) {
601 if let Some(parent) = db_path.parent() {

Callers 9

open_isolated_dbFunction · 0.85
setup_projectFunction · 0.85
start_fixtureFunction · 0.85
start_fixtureFunction · 0.85
start_fixtureFunction · 0.85
start_fixtureFunction · 0.85

Calls 1

Tested by 1