Namu de3f2af9fc
Some checks failed
Build project / quality-and-build (push) Successful in 10m41s
Build project / SonarQube Trigger (push) Failing after 14s
refactor: follow clippy recommendation :
- Remove unused constructor for Table & Column
- Add .expect in databases. disconnect
- Remove usedless String::from in column serializer
2026-04-02 11:12:24 +02:00
2026-04-02 10:52:16 +02:00
2026-04-01 22:08:55 +02:00
2026-04-02 00:30:52 +02:00
2026-04-02 10:43:10 +02:00

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
No description provided
Readme 56 KiB
Languages
Rust 100%