Skip to main content

SqlRender

Trait SqlRender 

Source
pub trait SqlRender {
    // Required methods
    fn select_sql(&self) -> Result<String, Error>;
    fn scoped_select_sql(&self) -> Result<String, Error>;
    fn insert_sql(&self) -> Result<String, Error>;
    fn update_sql(&self) -> Result<String, Error>;
    fn delete_sql(&self) -> Result<String, Error>;
    fn soft_delete_sql(&self) -> Result<String, Error>;
    fn ddl_sql(&self) -> Result<String, Error>;
    fn table_name(&self) -> &'static str;
}
Expand description

#[derive(SqlRender)] generates impls for this trait.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§