pub unsafe trait DelayedInput {
    fn cdata_type(&self) -> CDataType;
    fn indicator_ptr(&self) -> *const isize;
    fn stream_ptr(&mut self) -> *mut c_void;
}
Expand description

Stream which can be bound as in input parameter to a statement in order to provide the actual data at statement execution time, rather than preallocated buffers.

Safety

Self::stream_ptr must return a valid pointer to a reference of a dynamic Blob trait object (*mut &mut dyn Blob) which must at least be valid for the lifetime of the instance. The indicator pointer and C data type must describe that instance truthfully.

Required Methods

Then streaming data to the “data source” the driver converts the data from this type.

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).

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

Implementors