mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
969 B
969 B
SQLite

The package provides an interface to SQLite.
Documentation
Example
let database = sqlite::open(":memory:").unwrap();
database.execute(r#"
CREATE TABLE `users` (id INTEGER, name VARCHAR(255));
INSERT INTO `users` (id, name) VALUES (1, 'Alice');
"#).unwrap();
database.process("SELECT * FROM `users`;", |pairs| {
for &(column, value) in pairs.iter() {
println!("{} = {}", column, value.unwrap());
}
true
}).unwrap();
Contributing
- Fork the project.
- Implement your idea.
- Open a pull request.