We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcedda9 commit c71815cCopy full SHA for c71815c
1 file changed
src/lib/lib.rs
@@ -851,7 +851,7 @@ impl PostgresConnection {
851
/// ```rust,no_run
852
/// # use postgres::{PostgresConnection, PostgresResult};
853
/// fn init_db(conn: &PostgresConnection) -> PostgresResult<()> {
854
- /// static INIT_DB: &'static str = "
+ /// conn.batch_execute("
855
/// CREATE TABLE person (
856
/// id SERIAL PRIMARY KEY,
857
/// name NOT NULL
@@ -864,8 +864,7 @@ impl PostgresConnection {
864
/// );
865
///
866
/// CREATE INDEX ON purchase (time);
867
- /// ";
868
- /// conn.batch_execute(INIT_DB)
+ /// ")
869
/// }
870
/// ```
871
pub fn batch_execute(&self, query: &str) -> PostgresResult<()> {
0 commit comments