...
This commit is contained in:
@@ -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
|
||||
|
@@ -0,0 +1,4 @@
|
||||
segment_size: 524288
|
||||
use_compression: false
|
||||
version: 0.34
|
||||
vQ<>
|
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.
@@ -0,0 +1,4 @@
|
||||
segment_size: 524288
|
||||
use_compression: false
|
||||
version: 0.34
|
||||
vQ<>
|
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.
4
herodb/src/cmd/dbexample_prod/tmp/dbexample2/sale/conf
Normal file
4
herodb/src/cmd/dbexample_prod/tmp/dbexample2/sale/conf
Normal file
@@ -0,0 +1,4 @@
|
||||
segment_size: 524288
|
||||
use_compression: false
|
||||
version: 0.34
|
||||
vQ<>
|
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.
Reference in New Issue
Block a user