Skip to main content

validate_postgres_schema_name

Function validate_postgres_schema_name 

Source
pub fn validate_postgres_schema_name(schema: &str) -> Result<()>
Expand description

Validate a Postgres schema name before interpolating it into DDL / search_path.

Accepts only ^[A-Za-z_][A-Za-z0-9_]*$ up to 63 characters. Rejects quote breakouts and other identifier injection patterns.

ยงErrors

Returns chronon_core::ChrononError::ParamError when the name is empty, too long, or contains disallowed characters.