Skip to main content

validate_ident

Function validate_ident 

Source
pub fn validate_ident(name: &str) -> Result<&str, SqlError>
Expand description

Validates that name is a non-empty identifier without control characters.

Returns the input on success so the call composes inside iterator chains (e.g. Option::map(validate_ident).transpose()?).

ยงErrors

Returns SqlError::InvalidIdentifier if the name is empty, whitespace-only, or contains control characters.