Update sqlx

This commit is contained in:
LeNei
2023-09-18 09:02:42 +02:00
parent d70b2f37cc
commit cc4d0d7ba1
4 changed files with 481 additions and 129 deletions

View File

@@ -34,9 +34,8 @@ impl DatabaseSettings {
}
pub fn with_db(&self) -> PgConnectOptions {
let mut options = self.without_db().database(&self.database_name);
options.log_statements(tracing::log::LevelFilter::Trace);
options
let options = self.without_db().database(&self.database_name);
options.log_statements(tracing::log::LevelFilter::Trace)
}
pub fn get_connection_pool(&self) -> PgPool {