fix invalid simulate location and sqlite connection for seaorm

This commit is contained in:
GW_MC
2025-11-13 20:11:04 +08:00
parent de914e41a9
commit 7a1617e1ee
2 changed files with 2 additions and 2 deletions

View File

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

View File

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