From 2818b9d9ee13dec511c3db37c60733b0ac4a5116 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 1 Dec 2015 23:26:34 -0800 Subject: [PATCH] Mention Connection::query in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36c1f349..e9530ece 100644 --- a/README.md +++ b/README.md @@ -116,8 +116,8 @@ for row in try!(stmt.query(&[])) { println!("bar: {}, baz: {}", bar, baz); } ``` -In addition, `Connection` has a utility `execute` method which is useful if a -statement is only going to be executed once: +In addition, `Connection` has utility `execute` and `query` methods which are +useful if a statement is only going to be executed once: ```rust let updates = try!(conn.execute("UPDATE foo SET bar = $1 WHERE baz = $2", &[&1i32, &"biz"]));