pub struct BlobParam<'a> { /* private fields */ }
Expand description
Parameter type which can be used to bind a self::Blob
as parameter to a statement in order
for its contents to be streamed to the database at statement execution time.
Implementations§
Trait Implementations§
source§impl DelayedInput for BlobParam<'_>
impl DelayedInput for BlobParam<'_>
source§fn cdata_type(&self) -> CDataType
fn cdata_type(&self) -> CDataType
Then streaming data to the “data source” the driver converts the data from this type.
source§fn indicator_ptr(&self) -> *const isize
fn indicator_ptr(&self) -> *const isize
Either
odbc_sys::DATA_AT_EXEC
in case of streaming from a stream of unknown length (e.g.
stdin) or the result of odbc_sys::len_data_at_exec
if the length of the stream is known
in advance (e.g. a File).source§fn stream_ptr(&mut self) -> *mut c_void
fn stream_ptr(&mut self) -> *mut c_void
Pointer to reference of
crate::parameter::Blob
the stream or an application defined
value identifying the stream.source§impl HasDataType for BlobParam<'_>
impl HasDataType for BlobParam<'_>
source§impl ParameterCollection for BlobParam<'_>
impl ParameterCollection for BlobParam<'_>
source§fn parameter_set_size(&self) -> usize
fn parameter_set_size(&self) -> usize
Number of values per parameter in the collection. This can be different from the maximum
batch size a buffer may be able to hold. Returning
0
will cause the the query not to be
executed.