Expand description
SafeEn
Local database solution with clean and strict data integrity.
Usage
use safe_en::{
table::{TableRow, TypeDefs},
Database,
};
let mut db = Database::new();
db.create_table(
"users",
vec![
TableRow::new("id", TypeDefs::I64),
TableRow::new("email", TypeDefs::String),
],
)
.unwrap();
let id = 1_i64;;
let email = "ahmet@mail.com";
db.table("users").unwrap().insert(vec![id.into(), email.into()]).unwrap();
You can find more examples here