Skip to content

Commit c51f00b

Browse files
authored
Simplify RivetEngine constructors (#37)
* rename metadata_dir -> base_dir * simplify engine constructors * clippy feedback
1 parent 3809c6d commit c51f00b

File tree

5 files changed

+252
-232
lines changed

5 files changed

+252
-232
lines changed

src/config/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ pub struct StorageConfig {
4848

4949
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
5050
pub struct PathsConfig {
51+
/// Base directory for all RivetDB data (catalog.db, cache/).
52+
/// Defaults to ~/.hotdata/rivetdb
53+
pub base_dir: Option<String>,
54+
/// Cache directory for Parquet files. Defaults to {base_dir}/cache
5155
pub cache_dir: Option<String>,
5256
}
5357

0 commit comments

Comments
 (0)