Skip to main content

normalize_identifier_to_scope

Function normalize_identifier_to_scope 

Source
pub fn normalize_identifier_to_scope(
    identifier: String,
    entity_scope: &[String],
) -> String
Expand description

Normalize one possibly-qualified identifier against one SQL entity scope.

If identifier is qualifier.field and qualifier matches any scope candidate by tail-equivalence, this returns field. Otherwise returns the original identifier unchanged.