Skip to main content

SqlWriter

Trait SqlWriter 

Source
pub trait SqlWriter:
    Write
    + Sized
    + ToString {
    // Required method
    fn push_param<T: QueryBuilder>(
        &mut self,
        value: Value,
        query_builder: &T,
    ) -> Result<(), RenderError>;
}

Required Methods§

Source

fn push_param<T: QueryBuilder>( &mut self, value: Value, query_builder: &T, ) -> Result<(), RenderError>

Writes value’s marker and collects it, or, for a String, writes the value itself, which fails for a value the backend cannot write.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SqlWriter for String

Source§

fn push_param<T: QueryBuilder>( &mut self, value: Value, query_builder: &T, ) -> Result<(), RenderError>

Implementors§