Trait WriteSql

Source
pub trait WriteSql<Arg> {
    // Required methods
    fn push_expr<T>(
        &mut self,
        operand: SqlExpr<'_, T>,
    ) -> Result<(), Arg::Error>
       where Arg: ArgumentBuffer<T>;
    fn push_value<T>(&mut self, value: T) -> Result<(), Arg::Error>
       where Arg: ArgumentBuffer<T>;
    fn push_cmd(&mut self, expr: &str);
    fn as_command(&self) -> &str;
}

Required Methods§

Source

fn push_expr<T>(&mut self, operand: SqlExpr<'_, T>) -> Result<(), Arg::Error>
where Arg: ArgumentBuffer<T>,

Source

fn push_value<T>(&mut self, value: T) -> Result<(), Arg::Error>
where Arg: ArgumentBuffer<T>,

Source

fn push_cmd(&mut self, expr: &str)

Source

fn as_command(&self) -> &str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'cmd, Sql, Arg> WriteSql<Arg> for Group<'cmd, Sql, Arg>
where Sql: WriteSql<Arg>,

Source§

impl<Arg> WriteSql<Arg> for SqlCommand<Arg>