We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
application_name
1 parent 9f986f0 commit 43feda8Copy full SHA for 43feda8
src/db.rs
@@ -52,6 +52,8 @@ pub struct ConnectionConfig {
52
53
impl ConnectionConfig {
54
fn apply(&self, conn: &mut PgConnection) -> QueryResult<()> {
55
+ diesel::sql_query("SET application_name = 'crates.io'").execute(conn)?;
56
+
57
let statement_timeout = self.statement_timeout.as_millis();
58
diesel::sql_query(format!("SET statement_timeout = {statement_timeout}")).execute(conn)?;
59
0 commit comments