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.Auto Trait Implementations§
impl<'a> Freeze for BlobParam<'a>
impl<'a> !RefUnwindSafe for BlobParam<'a>
impl<'a> !Send for BlobParam<'a>
impl<'a> !Sync for BlobParam<'a>
impl<'a> Unpin for BlobParam<'a>
impl<'a> !UnwindSafe for BlobParam<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more