GoodSql

Crates.ioGoodSql
lib.rsGoodSql
version0.1.1
sourcesrc
created_at2023-10-26 18:48:54.949833
updated_at2023-10-26 20:35:19.199671
descriptionModule help programmers to use sqlite
homepagehttps://t.me/GoodSql
repositoryhttps://github.com/ArabShadows/GoodSql/
max_upload_size
id1014896
size5,998
(ArabShadows)

documentation

README

GoodSql

Use module

extern crate GoodSql;
use GoodSql::GoodSql;

let path = "database.sqlite";
let conn = SqlGood::new(path).unwrap();

conn.create_table("my_table", "key TEXT, value TEXT").unwrap();
conn.set_key("my_table", "example_key", "example_value").unwrap();

let value = conn.get_key("my_table", "example_key").unwrap();
match value {
    Some(v) => println!("Value: {}", v),
    None => println!("Key not found"),
}

Community

Commit count: 0

cargo fmt