Skip to main content

transform

Function transform 

Source
pub fn transform(statement: &Statement, from: Dialect, to: Dialect) -> Statement
Expand description

Transform a statement from one dialect to another.

This applies dialect-specific rewrite rules such as:

  • Type mapping (e.g., TEXTSTRING for BigQuery)
  • Function name mapping (e.g., NOW()CURRENT_TIMESTAMP())
  • ILIKE → LIKE with LOWER() wrapping for dialects that don’t support ILIKE