Skip to main content

transpile_by_name

Function transpile_by_name 

Source
pub fn transpile_by_name(
    sql: &str,
    read: &str,
    write: &str,
) -> Result<Vec<String>>
Expand description

Transpile SQL from one dialect to another, using string dialect names.

This supports both built-in dialect names (e.g., “postgresql”, “mysql”) and custom dialects registered via CustomDialectBuilder.

§Arguments

  • sql - The SQL string to transpile
  • read - The source dialect name
  • write - The target dialect name

§Returns

A vector of transpiled SQL statements, or an error if a dialect name is unknown.