Skip to main content

check_common_with_options

Function check_common_with_options 

Source
pub fn check_common_with_options<T: CdcSourceRuntimeFlags>(
    props: &BTreeMap<String, String>,
    secret_refs: &BTreeMap<String, PbSecretRef>,
) -> ConnectorResult<()>
Expand description

Checks the WITH (...) options that every CDC source accepts, on both CREATE and ALTER. Options that only some connectors support are checked against the runtime flags of T. An option given as a SECRET in secret_refs is checked by its resolved value, which an error never shows.