Struct diesel::query_builder::bind_collector::RawBytesBindCollector [−][src]
pub struct RawBytesBindCollector<DB: Backend + TypeMetadata> {
pub metadata: Vec<DB::TypeMetadata>,
pub binds: Vec<Option<Vec<u8>>>,
}
Expand description
A bind collector used by backends which transmit bind parameters as an opaque blob of bytes.
For most backends, this is the concrete implementation of BindCollector
that should be used.
Fields
metadata: Vec<DB::TypeMetadata>
The metadata associated with each bind parameter.
This vec is guaranteed to be the same length as binds
.
binds: Vec<Option<Vec<u8>>>
The serialized bytes for each bind parameter.
This vec is guaranteed to be the same length as metadata
.
Implementations
Trait Implementations
fn push_bound_value<T, U>(
&mut self,
bind: &U,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,
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.