We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2805bd7 commit 8d5c448Copy full SHA for 8d5c448
README.md
@@ -23,6 +23,7 @@ all commands with a "no results" reply:
23
```rust
24
extern crate mysql;
25
use msql_srv::*;
26
+use mysql::prelude::*;
27
28
struct Backend;
29
impl<W: io::Write> MysqlShim<W> for Backend {
@@ -78,7 +79,7 @@ fn main() {
78
79
80
let mut db = mysql::Conn::new(&format!("mysql://127.0.0.1:{}", port)).unwrap();
81
assert_eq!(db.ping(), true);
- assert_eq!(db.query("SELECT a, b FROM foo").unwrap().count(), 1);
82
+ assert_eq!(db.query_iter("SELECT a, b FROM foo").unwrap().count(), 1);
83
drop(db);
84
jh.join().unwrap();
85
}
README.tpl
0 commit comments