storage_manager/backend/
layout.rs

1//! Defines the physical on-disk layout used by all backend components.
2
3// Root directory for all storage
4pub const DATA_DIR: &str = "database";
5
6// Catalog metadata directory
7pub const GLOBAL_DIR: &str = "database/global";
8
9// Global catalog file
10pub const CATALOG_FILE: &str = "database/global/catalog.json";
11
12// Root directory for all databases
13pub const DATABASE_DIR: &str = "database/base";
14
15// Directory for specific database
16pub const TABLE_DIR_TEMPLATE: &str = "database/base/{database}";
17
18// File path for specific table
19pub const TABLE_FILE_TEMPLATE: &str = "database/base/{database}/{table}.dat";