Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename config apply_access_policies_sql to apply_access_policies_pg. #1426

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/commands/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ pub async fn configure(
parameter: S::ApplyAccessPolicies(ConfigStr { value }),
}) => set(cli, "apply_access_policies", None, value).await,
C::Set(Set {
parameter: S::ApplyAccessPoliciesSQL(ConfigStr { value }),
}) => set(cli, "apply_access_policies_sql", None, value).await,
parameter: S::ApplyAccessPoliciesPG(ConfigStr { value }),
}) => set(cli, "apply_access_policies_pg", None, value).await,
C::Set(Set {
parameter: S::AllowUserSpecifiedId(ConfigStr { value }),
}) => set(cli, "allow_user_specified_id", None, value).await,
Expand Down Expand Up @@ -229,7 +229,7 @@ pub async fn configure(
C::QueryExecutionTimeout => "query_execution_timeout",
C::AllowBareDdl => "allow_bare_ddl",
C::ApplyAccessPolicies => "apply_access_policies",
C::ApplyAccessPoliciesSQL => "apply_access_policies_sql",
C::ApplyAccessPoliciesPG => "apply_access_policies_pg",
C::AllowUserSpecifiedId => "allow_user_specified_id",
C::CorsAllowOrigins => "cors_allow_origins",
C::AutoRebuildQueryCache => "auto_rebuild_query_cache",
Expand Down
6 changes: 3 additions & 3 deletions src/commands/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ pub enum ValueParameter {
///
/// User-specified access policies are not applied when set to `false`,
/// allowing any queries to be executed.
ApplyAccessPoliciesSQL(ConfigStr),
ApplyAccessPoliciesPG(ConfigStr),

/// Allow setting user-specified object identifiers.
AllowUserSpecifiedId(ConfigStr),
Expand Down Expand Up @@ -648,8 +648,8 @@ pub enum ConfigParameter {
AllowBareDdl,
/// Reset apply_access_policies parameter to `true`
ApplyAccessPolicies,
/// Reset apply_access_policies_sql parameter to `false`
ApplyAccessPoliciesSQL,
/// Reset apply_access_policies_pg parameter to `false`
ApplyAccessPoliciesPG,
/// Reset allow_user_specified_id parameter to `false`
AllowUserSpecifiedId,
/// Reset cors_allow_origins to an empty set
Expand Down
Loading