Skip to main content

TableFlavoredStatement

Trait TableFlavoredStatement 

Source
pub trait TableFlavoredStatement {
    // Required methods
    fn create_stmt<C, R>(&self, conn: &C) -> Result<String>
       where C: Connection<R>,
             R: Row;
    fn create_if_not_exist_stmt<C, R>(&self, conn: &C) -> Result<String>
       where C: Connection<R>,
             R: Row;
    fn drop_stmt<C, R>(&self, conn: &C) -> Result<String>
       where C: Connection<R>,
             R: Row;
}
Expand description

Specify table handling statement using the SQL Flavor

Required Methods§

Source

fn create_stmt<C, R>(&self, conn: &C) -> Result<String>
where C: Connection<R>, R: Row,

Create table statement

Source

fn create_if_not_exist_stmt<C, R>(&self, conn: &C) -> Result<String>
where C: Connection<R>, R: Row,

Create table statement if it does not exists

Source

fn drop_stmt<C, R>(&self, conn: &C) -> Result<String>
where C: Connection<R>, R: Row,

Drop table statemetn

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<S> TableFlavoredStatement for S
where S: TableStatement,

[Deprecated] Blanket statement converting legacy implementation