Skip to content

Commit 5e45159

Browse files
committed
add comments
1 parent 49f600a commit 5e45159

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

optd-persistent/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ mod migrator;
1313
pub mod cost_model;
1414
pub use cost_model::interface::CostModelStorageLayer;
1515

16+
/// The filename of the SQLite database for migration.
1617
pub const DATABASE_FILENAME: &str = "sqlite.db";
18+
/// The URL of the SQLite database for migration.
1719
pub const DATABASE_URL: &str = "sqlite:./sqlite.db?mode=rwc";
1820

21+
/// The filename of the SQLite database for testing.
1922
pub const TEST_DATABASE_FILENAME: &str = "init.db";
23+
/// The URL of the SQLite database for testing.
2024
pub static TEST_DATABASE_FILE: LazyLock<String> = LazyLock::new(|| {
2125
std::env::current_dir()
2226
.unwrap()
@@ -27,6 +31,7 @@ pub static TEST_DATABASE_FILE: LazyLock<String> = LazyLock::new(|| {
2731
.unwrap()
2832
.to_owned()
2933
});
34+
/// The URL of the SQLite database for testing.
3035
pub static TEST_DATABASE_URL: LazyLock<String> =
3136
LazyLock::new(|| get_sqlite_url(TEST_DATABASE_FILE.as_str()));
3237

0 commit comments

Comments
 (0)