glimr/db/gen/parser/tables/subquery
Subquery Helpers
Utilities for extracting content from subqueries, primarily handling balanced parentheses extraction.
Values
pub fn extract_parenthesized_content(
sql: String,
) -> option.Option(String)
Extract content from balanced parentheses, handling nested parentheses correctly. Returns the content inside the parens without the surrounding parentheses.
Expects the input to start after the opening parenthesis, and returns the content up to the matching closing paren.