Skip to content

Commit

Permalink
refactor(postgres): don't define unused fields in QueryPlan
Browse files Browse the repository at this point in the history
  • Loading branch information
mrl5 committed Jul 20, 2023
1 parent f0696ea commit 9102d5d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sqlx-postgres/src/connection/describe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,6 @@ enum Explain {
struct QueryPlan {
#[serde(rename = "Plan")]
plan: Plan,
/// present when either pg_stat_statements is loaded and/or compute_query_id is enabled
/// https://www.postgresql.org/docs/current/pgstatstatements.html
/// https://www.postgresql.org/docs/current/runtime-config-statistics.html#GUC-COMPUTE-QUERY-ID
#[serde(rename = "Query Identifier", skip)]
_query_identifier: Option<u64>,
}

#[derive(serde::Deserialize)]
Expand Down

0 comments on commit 9102d5d

Please sign in to comment.