Trait diesel::query_builder::bind_collector::BindCollector
source · pub trait BindCollector<'a, DB: TypeMetadata>: Sized {
type Buffer;
// Required method
fn push_bound_value<T, U>(
&mut self,
bind: &'a U,
metadata_lookup: &mut DB::MetadataLookup
) -> QueryResult<()>
where DB: Backend + HasSqlType<T>,
U: ToSql<T, DB> + ?Sized + 'a;
}
Expand description
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 Associated Types§
Required Methods§
sourcefn push_bound_value<T, U>(
&mut self,
bind: &'a U,
metadata_lookup: &mut DB::MetadataLookup
) -> QueryResult<()>
fn push_bound_value<T, U>( &mut self, bind: &'a U, metadata_lookup: &mut DB::MetadataLookup ) -> QueryResult<()>
Serializes the given bind value, and collects the result.
Object Safety§
This trait is not object safe.