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)
| 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. |
| 596 | pub async fn write_empty_global_db_schema(db_path: &Path) { |
| 597 | seed_lcm_db_from_template(db_path).await; |
| 598 | } |
| 599 | |
| 600 | async fn seed_lcm_db_from_template(db_path: &Path) { |
| 601 | if let Some(parent) = db_path.parent() { |