odbc_api

Trait BoundInputSlice

Source
pub unsafe trait BoundInputSlice<'a> {
    type SliceMut;

    // Required method
    unsafe fn as_view_mut(
        &'a mut self,
        parameter_index: u16,
        stmt: StatementRef<'a>,
    ) -> Self::SliceMut;
}
Expand description

You can obtain a mutable slice of a column buffer which allows you to change its contents.

§Safety

  • If any operations have been performed which would invalidate the pointers bound to the statement, the slice must use the statement handle to rebind the column, at the end of its lifetime (at the latest).
  • All values must be complete. I.e. none of the values must be truncated.

Required Associated Types§

Source

type SliceMut

Intended to allow for modifying buffer contents, while leaving the bound parameter buffers valid.

Required Methods§

Source

unsafe fn as_view_mut( &'a mut self, parameter_index: u16, stmt: StatementRef<'a>, ) -> Self::SliceMut

Obtain a mutable view on a parameter buffer in order to change the parameter value(s) submitted when executing the statement.

§Safety
  • The statement must be the statment the column buffer is bound to. The index must be the parameter index it is bound at.
  • All values must be complete. I.e. none of the values must be truncated.

Implementors§