...
This commit is contained in:
parent
56f73e5802
commit
2a68a661d7
@ -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
|
||||
|
BIN
herodb/src/cmd/dbexample_prod/tmp/dbexample2/currency/db
Normal file
BIN
herodb/src/cmd/dbexample_prod/tmp/dbexample2/currency/db
Normal file
Binary file not shown.
BIN
herodb/src/cmd/dbexample_prod/tmp/dbexample2/product/db
Normal file
BIN
herodb/src/cmd/dbexample_prod/tmp/dbexample2/product/db
Normal file
Binary file not shown.
BIN
herodb/src/cmd/dbexample_prod/tmp/dbexample2/sale/db
Normal file
BIN
herodb/src/cmd/dbexample_prod/tmp/dbexample2/sale/db
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user