MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / config_remove

Function config_remove

src/mz/src/command/profile.rs:323–330  ·  view source on GitHub ↗

Removes the value from a profile configuration field.

(
    cx: &ProfileContext,
    ConfigRemoveArgs { name }: ConfigRemoveArgs<'_>,
)

Source from the content-addressed store, hash-verified

321
322/// Removes the value from a profile configuration field.
323pub async fn config_remove(
324 cx: &ProfileContext,
325 ConfigRemoveArgs { name }: ConfigRemoveArgs<'_>,
326) -> Result<(), Error> {
327 cx.config_file()
328 .set_profile_param(&cx.get_profile(), name, None)
329 .await
330}

Callers 1

runFunction · 0.85

Calls 3

set_profile_paramMethod · 0.80
config_fileMethod · 0.80
get_profileMethod · 0.45

Tested by

no test coverage detected