mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-23 10:38:57 +00:00
Start testing on Postgres 15 and drop Postgres 10 (#2193)
* CHANGELOG: mention that users should upgrade CLI * Drop postgres 10 start testing postgres 15 --------- Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
This commit is contained in:
committed by
Austin Bonander
parent
0534c9da81
commit
171b00de2e
@@ -15,7 +15,7 @@ use std::ops::{Deref, DerefMut};
|
||||
///
|
||||
/// ```rust
|
||||
/// # use sqlx::{Acquire, postgres::Postgres, error::BoxDynError};
|
||||
/// # #[cfg(any(postgres_9_6, postgres_14))]
|
||||
/// # #[cfg(any(postgres_9_6, postgres_15))]
|
||||
/// async fn run_query<'a, A>(conn: A) -> Result<(), BoxDynError>
|
||||
/// where
|
||||
/// A: Acquire<'a, Database = Postgres>,
|
||||
@@ -35,7 +35,7 @@ use std::ops::{Deref, DerefMut};
|
||||
/// ```rust
|
||||
/// # use std::future::Future;
|
||||
/// # use sqlx::{Acquire, postgres::Postgres, error::BoxDynError};
|
||||
/// # #[cfg(any(postgres_9_6, postgres_14))]
|
||||
/// # #[cfg(any(postgres_9_6, postgres_15))]
|
||||
/// fn run_query<'a, 'c, A>(conn: A) -> impl Future<Output = Result<(), BoxDynError>> + Send + 'a
|
||||
/// where
|
||||
/// A: Acquire<'c, Database = Postgres> + Send + 'a,
|
||||
@@ -57,7 +57,7 @@ use std::ops::{Deref, DerefMut};
|
||||
///
|
||||
/// ```rust
|
||||
/// # use sqlx::{postgres::PgConnection, error::BoxDynError};
|
||||
/// # #[cfg(any(postgres_9_6, postgres_14))]
|
||||
/// # #[cfg(any(postgres_9_6, postgres_15))]
|
||||
/// async fn run_query(conn: &mut PgConnection) -> Result<(), BoxDynError> {
|
||||
/// sqlx::query!("SELECT 1 as v").fetch_one(&mut *conn).await?;
|
||||
/// sqlx::query!("SELECT 2 as v").fetch_one(&mut *conn).await?;
|
||||
|
||||
Reference in New Issue
Block a user