@@ -13,9 +13,8 @@ use std::ops::{Deref, DerefMut};
13
13
/// connection or [`begin`][`Acquire::begin`] a transaction, then you can do it
14
14
/// like that:
15
15
///
16
- /// ```rust
16
+ /// ```rust,ignore
17
17
/// # use sqlx::{Acquire, postgres::Postgres, error::BoxDynError};
18
- /// # #[cfg(any(postgres_9_6, postgres_15))]
19
18
/// async fn run_query<'a, A>(conn: A) -> Result<(), BoxDynError>
20
19
/// where
21
20
/// A: Acquire<'a, Database = Postgres>,
@@ -32,10 +31,9 @@ use std::ops::{Deref, DerefMut};
32
31
/// If you run into a lifetime error about "implementation of `sqlx::Acquire` is
33
32
/// not general enough", the [workaround] looks like this:
34
33
///
35
- /// ```rust
34
+ /// ```rust,ignore
36
35
/// # use std::future::Future;
37
36
/// # use sqlx::{Acquire, postgres::Postgres, error::BoxDynError};
38
- /// # #[cfg(any(postgres_9_6, postgres_15))]
39
37
/// fn run_query<'a, 'c, A>(conn: A) -> impl Future<Output = Result<(), BoxDynError>> + Send + 'a
40
38
/// where
41
39
/// A: Acquire<'c, Database = Postgres> + Send + 'a,
@@ -55,9 +53,8 @@ use std::ops::{Deref, DerefMut};
55
53
/// connection as an argument to a function, then it's easier to just accept a
56
54
/// mutable reference to a database connection like so:
57
55
///
58
- /// ```rust
56
+ /// ```rust,ignore
59
57
/// # use sqlx::{postgres::PgConnection, error::BoxDynError};
60
- /// # #[cfg(any(postgres_9_6, postgres_15))]
61
58
/// async fn run_query(conn: &mut PgConnection) -> Result<(), BoxDynError> {
62
59
/// sqlx::query!("SELECT 1 as v").fetch_one(&mut *conn).await?;
63
60
/// sqlx::query!("SELECT 2 as v").fetch_one(&mut *conn).await?;
0 commit comments