Trait block_tools::db::use_diesel::query_builder::BindCollector [−][src]
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
pub fn push_bound_value<T, U>(
&mut self,
bind: &U,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,
[src]
&mut self,
bind: &U,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,
Serializes the given bind value, and collects the result.
Implementors
impl<DB> BindCollector<DB> for RawBytesBindCollector<DB> where
DB: Backend + TypeMetadata,
[src]
DB: Backend + TypeMetadata,
pub fn push_bound_value<T, U>(
&mut self,
bind: &U,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,
[src]
&mut self,
bind: &U,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,