fix invalid simulate location and sqlite connection for seaorm
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
2
justfile
2
justfile
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user