1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! The storage engine — manages the on-disk layout for all database objects.
//!
//! Sits at the bottom of the pipeline:
//!
//! ```text
//! Executor → Storage → Disk
//! ```
//!
//! # On-disk layout
//!
//! ```text
//! data_dir/
//! {database}/
//! {schema}/
//! {table}.dat ← heap file (rows)
//! {index}.idx ← index file
//! ```
//!
//! # Structure
//!
//! - [`storage`] — the [`Storage`] struct and path helpers
//! - [`error`] — [`StorageError`] variants
//! - [`ddl`] — DDL storage operations, one file per object type
pub use BPlusTreeIndex;
pub use StorageError;
pub use ;
pub use TableHeap;
pub use BufferPool;