File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ mod migrator;
1313pub mod cost_model;
1414pub use cost_model:: interface:: CostModelStorageLayer ;
1515
16+ /// The filename of the SQLite database for migration.
1617pub const DATABASE_FILENAME : & str = "sqlite.db" ;
18+ /// The URL of the SQLite database for migration.
1719pub const DATABASE_URL : & str = "sqlite:./sqlite.db?mode=rwc" ;
1820
21+ /// The filename of the SQLite database for testing.
1922pub const TEST_DATABASE_FILENAME : & str = "init.db" ;
23+ /// The URL of the SQLite database for testing.
2024pub 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.
3035pub static TEST_DATABASE_URL : LazyLock < String > =
3136 LazyLock :: new ( || get_sqlite_url ( TEST_DATABASE_FILE . as_str ( ) ) ) ;
3237
You can’t perform that action at this time.
0 commit comments