(&self, flags: &[&'static str])
| 957 | } |
| 958 | |
| 959 | pub async fn enable_feature_flags(&self, flags: &[&'static str]) { |
| 960 | let internal_client = self.connect().internal().await.unwrap(); |
| 961 | |
| 962 | for flag in flags { |
| 963 | let query = sql!("ALTER SYSTEM SET {} = true;", Sql::ident(flag)); |
| 964 | pg_batch_execute(&internal_client, query).await.unwrap(); |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | pub async fn disable_feature_flags(&self, flags: &[&'static str]) { |
| 969 | let internal_client = self.connect().internal().await.unwrap(); |
no test coverage detected