Skip to main content

materialise_vectorize_index_names

Function materialise_vectorize_index_names 

Source
pub fn materialise_vectorize_index_names(
    text: &str,
    environment: &str,
    names: &BTreeMap<String, String>,
) -> Result<String, String>
Expand description

#3479: point [[vectorize]] entries at the indexes bynk.toml adopts, structurally, by binding. An adopted index keeps the name it has on the account (never the derived, environment-qualified one), so it is written into the top-level entries for the default environment and into [env.<environment>]’s for a named one. Unchanged text when nothing differs, as materialise_r2_bucket_names.