This commit is contained in:
despiegk 2025-04-19 10:49:45 +02:00
parent 56f73e5802
commit 2a68a661d7
13 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("============================================================");
// Create a temporary directory for the database
let db_path = PathBuf::from("./tmp/dbexample2");
let db_path = PathBuf::from("/tmp/dbexample_prod");
if db_path.exists() {
fs::remove_dir_all(&db_path)?;
}
@ -155,6 +155,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// db.insert_product(product2);
"#;
println!("\n0. Executing Script");
println!("----------------------------------------");
engine.eval::<()>(script)?;
// Create a database instance with our models registered

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.