Skip to main content

AstWriter

Trait AstWriter 

Source
pub trait AstWriter {
    // Required methods
    fn serialize(&self, statement: &Select) -> Result<String>;
    fn serialize_expression(&self, expression: &Expression) -> Result<String>;
}
Expand description

What writes the SQL fromAst() keeps raw: the dialect’s Serializer, or the one a subclass’s createAstSerializer() returns.

Required Methods§

Source

fn serialize(&self, statement: &Select) -> Result<String>

A statement as SQL.

Source

fn serialize_expression(&self, expression: &Expression) -> Result<String>

An expression as SQL.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§