Skip to main content

SqlBuilder

Trait SqlBuilder 

Source
pub trait SqlBuilder {
    // Required method
    fn build_sql(&self) -> SqlFragment;
}
Expand description

Trait for types that can be converted to SQL fragments.

Required Methods§

Source

fn build_sql(&self) -> SqlFragment

Build the SQL fragment for this type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SqlBuilder for &str

Source§

impl SqlBuilder for String

Implementors§