2 releases
0.1.1 | Oct 26, 2023 |
---|---|
0.1.0 | Oct 26, 2023 |
#40 in #programmers
6KB
108 lines
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
- Join the telegram channel: https://t.me/GoodSql
Dependencies
~22MB
~423K SLoC