From 14e1ec8635770aa6e90ed26578da1a163e7b5002 Mon Sep 17 00:00:00 2001 From: Namu Date: Thu, 2 Apr 2026 10:43:10 +0200 Subject: [PATCH] chore: Add README --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1fd9d64 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# 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: +```rust +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) + } +} +```