[][src]Trait diesel::query_builder::bind_collector::BindCollector

pub trait BindCollector<DB: Backend> {
    fn push_bound_value<T, U>(
        &mut self,
        bind: &U,
        metadata_lookup: &DB::MetadataLookup
    ) -> QueryResult<()>
    where
        DB: HasSqlType<T>,
        U: ToSql<T, DB>
; }

A type which manages serializing bind parameters during query construction.

The only reason you would ever need to interact with this trait is if you are adding support for a new backend to Diesel. Plugins which are extending the query builder will use AstPass::push_bind_param instead.

Required methods

fn push_bound_value<T, U>(
    &mut self,
    bind: &U,
    metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()> where
    DB: HasSqlType<T>,
    U: ToSql<T, DB>, 

Serializes the given bind value, and collects the result.

Loading content...

Implementors

impl<DB: Backend + TypeMetadata> BindCollector<DB> for RawBytesBindCollector<DB>[src]

Loading content...