mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-15 00:11:21 +00:00
Extend the example
This commit is contained in:
@ -16,6 +16,12 @@
|
||||
//! }
|
||||
//! true
|
||||
//! }).unwrap();
|
||||
//!
|
||||
//! let mut statement = connection.prepare("SELECT * FROM `users`;").unwrap();
|
||||
//! while statement.step().unwrap() == sqlite::State::Row {
|
||||
//! println!("id = {}", statement.read::<i64>(0).unwrap());
|
||||
//! println!("name = {}", statement.read::<String>(1).unwrap());
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! [1]: https://www.sqlite.org
|
||||
|
Reference in New Issue
Block a user