4cdb5047ca6b7b872d801d2ff6b0c53df6d3dbcf
Db Builder
This package enables you to create your SQLite database from a json file that represent your tables.
Warnings
DO NOT USE IN PRODUCTION ENVIRONNEMENT, this lib is quickly developed for my personal use !
Usage
To use this lib, you need to call the facade struct DbBuilderFacade and give it
the database path (the db file is created if needed) and the path to the json file that represent your db.
Exemple:
fn main() {
let facade = DbBuilderFacade{};
match facade.build("schema.json".to_string(), "exemple.db".to_string()) {
Ok(_) => println!("DB created"),
Err(message) => eprintln!("Error creating the db: {}", message)
}
}
Description
Languages
Rust
100%