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