diff --git a/src/commands/configure.rs b/src/commands/configure.rs index 76c2f321e..9a8ef7e7a 100644 --- a/src/commands/configure.rs +++ b/src/commands/configure.rs @@ -209,6 +209,9 @@ pub async fn configure( C::Set(Set { parameter: S::WarnOldScoping(ConfigStr { value }), }) => set(cli, "warn_old_scoping", None, value).await, + C::Set(Set { + parameter: S::TrackQueryStats(ConfigStr { value }), + }) => set(cli, "track_query_stats", None, value).await, C::Reset(Res { parameter }) => { use crate::commands::parser::ConfigParameter as C; let name = match parameter { @@ -236,6 +239,7 @@ pub async fn configure( C::CurrentEmailProviderName => "current_email_provider_name", C::SimpleScoping => "simple_scoping", C::WarnOldScoping => "warn_old_scoping", + C::TrackQueryStats => "track_query_stats", }; let (status, _warnings) = cli .execute(&format!("CONFIGURE INSTANCE RESET {name}"), &()) diff --git a/src/commands/parser.rs b/src/commands/parser.rs index 2f25128f0..26b4acb0e 100644 --- a/src/commands/parser.rs +++ b/src/commands/parser.rs @@ -611,6 +611,9 @@ pub enum ValueParameter { /// Whether to warn when depending on old scoping behavior. WarnOldScoping(ConfigStr), + + /// Select what queries are tracked in sys::QueryStats. + TrackQueryStats(ConfigStr), } #[derive(clap::Subcommand, Clone, Debug)] @@ -665,6 +668,8 @@ pub enum ConfigParameter { SimpleScoping, /// Whether to warn when depending on old scoping behavior. WarnOldScoping, + /// Select what queries are tracked in sys::QueryStats. + TrackQueryStats, } #[derive(clap::Args, Clone, Debug)]