Setup database #1

Merged
GW_MC merged 16 commits from feature/database-setup into master 2025-11-19 21:49:32 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 7a1617e1ee - Show all commits

View File

@@ -69,7 +69,7 @@ impl SQLiteContainer {
impl DBInfo<OptionalContainerConfig> for SQLiteContainer {
async fn get_db_container_config_info(&self) -> DBConfigInfoType {
// sqlite filepath url does not include the "sqlite://" prefix
let sqlite_url = format!("{}", self.get_db_absolute_path().to_string_lossy());
let sqlite_url = format!("sqlite://{}", self.get_db_absolute_path().to_string_lossy());
// create the file
std::fs::create_dir_all(&self.config.absolute_dir_path)
.expect("Failed to create directories for SQLite database");

View File

@@ -1,5 +1,5 @@
simulate *args:
cd src/container && \
cd apps/container && \
if [ -n "{{args}}" ]; then \
cargo run --bin container-simulate -- --db-type={{args}}; \
else \