Alter database configuration.
(
&self,
name: &str,
removals: Vec<String>,
updates: HashMap<String, String>,
)
| 247 | |
| 248 | /// Alter database configuration. |
| 249 | pub async fn alter_database( |
| 250 | &self, |
| 251 | name: &str, |
| 252 | removals: Vec<String>, |
| 253 | updates: HashMap<String, String>, |
| 254 | ) -> Result<()> { |
| 255 | validate_non_empty(name, "database name")?; |
| 256 | let path = self.resource_paths.database(name); |
| 257 | let request = AlterDatabaseRequest::new(removals, updates); |
| 258 | let _resp: serde_json::Value = self.client.post(&path, &request).await?; |
| 259 | Ok(()) |
| 260 | } |
| 261 | |
| 262 | /// Drop a database. |
| 263 | pub async fn drop_database(&self, name: &str) -> Result<()> { |
nothing calls this directly
no test coverage detected