pub fn complexity(sql: &str) -> Result<Complexity>Expand description
Score a query’s structural complexity: a weighted sum of joins (comma joins included), CTEs,
subqueries, set operations, CASE expressions (IF included), window functions, AND/OR
predicates and maximum SELECT nesting. Bands: < 10 low, < 25 moderate, < 50 high,
otherwise very high. SQL that does not parse, and Dataform SQLX, are errors.