MCPcopy Create free account
hub / github.com/apache/paimon-rust / alter_database

Method alter_database

crates/paimon/src/api/rest_api.rs:249–260  ·  view source on GitHub ↗

Alter database configuration.

(
        &self,
        name: &str,
        removals: Vec<String>,
        updates: HashMap<String, String>,
    )

Source from the content-addressed store, hash-verified

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<()> {

Callers

nothing calls this directly

Calls 3

validate_non_emptyFunction · 0.85
postMethod · 0.80
databaseMethod · 0.45

Tested by

no test coverage detected