Skip to content

Commit a8fa2a4

Browse files
committed
Use batch_execute in example
1 parent 75a67fd commit a8fa2a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! # fn main() -> Result<(), postgres::Error> {
99
//! let mut client = Client::connect("host=localhost user=postgres", NoTls)?;
1010
//!
11-
//! client.simple_query("
11+
//! client.batch_execute("
1212
//! CREATE TABLE person (
1313
//! id SERIAL PRIMARY KEY,
1414
//! name TEXT NOT NULL,

0 commit comments

Comments
 (0)