File tree Expand file tree Collapse file tree
core/src/sql/db_connection_pool Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ target/
1212* .db
1313
1414.vscode /settings.json
15+ .zed /settings.json
1516
1617.DS_Store
1718
Original file line number Diff line number Diff line change @@ -165,7 +165,14 @@ impl PostgresConnectionPool {
165165 } ;
166166
167167 connection_string. push_str ( format ! ( "sslmode={mode} " ) . as_str ( ) ) ;
168- let config = Config :: from_str ( connection_string. as_str ( ) ) . context ( ConnectionPoolSnafu ) ?;
168+ let mut config =
169+ Config :: from_str ( connection_string. as_str ( ) ) . context ( ConnectionPoolSnafu ) ?;
170+
171+ if let Some ( application_name) = params. get ( "application_name" ) . map ( SecretBox :: expose_secret)
172+ {
173+ config. application_name ( application_name) ;
174+ }
175+
169176 verify_postgres_config ( & config) . await ?;
170177
171178 let mut certs: Option < Vec < Certificate > > = None ;
You can’t perform that action at this time.
0 commit comments