Struct odbc_api::parameter::BlobParam

source ·
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§

source§

impl<'a> BlobParam<'a>

source

pub fn new(blob: &'a mut impl Blob) -> Self

Trait Implementations§

source§

impl DelayedInput for BlobParam<'_>

source§

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

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

Pointer to reference of crate::parameter::Blob the stream or an application defined value identifying the stream.
source§

impl HasDataType for BlobParam<'_>

source§

fn data_type(&self) -> DataType

The SQL data as which the parameter is bound to ODBC.
source§

impl ParameterCollection for BlobParam<'_>

source§

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.
source§

unsafe fn bind_parameters_to( &mut self, stmt: &mut impl Statement ) -> Result<(), Error>

Bind the parameters to a statement Read more
source§

impl ParameterTupleElement for &mut BlobParam<'_>

source§

unsafe fn bind_to( &mut self, parameter_number: u16, stmt: &mut impl Statement ) -> Result<(), Error>

Bind the parameter in question to a specific parameter_number. Read more

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.