papera 0.2.0

A SQL compatibility layer that transpiles Trino and Redshift SQL to DuckDB SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod rewrite;

use sqlparser::ast::Statement;

use crate::TranspileOptions;

/// Trait for dialect-specific transpilation logic.
pub trait Transpiler {
    /// Transform a parsed SQL statement into target-dialect-compatible form.
    fn transpile_statement(
        &self,
        stmt: Statement,
        opts: &TranspileOptions,
    ) -> crate::Result<Statement>;
}