mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
core: bump sqlx from 0.8.6 to 0.9.0 (#22754)
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Generated
+176
-364
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -83,7 +83,7 @@ serde_repr = "= 0.1.20"
|
||||
serde_with = { version = "= 3.21.0", default-features = false, features = [
|
||||
"base64",
|
||||
] }
|
||||
sqlx = { version = "= 0.8.6", default-features = false, features = [
|
||||
sqlx = { version = "= 0.9.0", default-features = false, features = [
|
||||
"runtime-tokio",
|
||||
"tls-rustls-aws-lc-rs",
|
||||
"postgres",
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::{str::FromStr as _, sync::OnceLock, time::Duration};
|
||||
|
||||
use eyre::Result;
|
||||
use sqlx::{
|
||||
ConnectOptions as _, Executor as _, PgConnection, PgPool,
|
||||
AssertSqlSafe, ConnectOptions as _, Executor as _, PgConnection, PgPool,
|
||||
postgres::{PgConnectOptions, PgPoolOptions, PgSslMode},
|
||||
};
|
||||
use tokio::fs::read_to_string;
|
||||
@@ -85,7 +85,7 @@ pub async fn init(tasks: &mut Tasks) -> Result<()> {
|
||||
"SET application_name = '{application_name}'; SET search_path = \
|
||||
'{default_schema}';"
|
||||
);
|
||||
conn.execute(query.as_str()).await?;
|
||||
conn.execute(AssertSqlSafe(query)).await?;
|
||||
Ok(())
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user