Trait odbc_api::parameter::InputParameter[][src]

pub unsafe trait InputParameter: HasDataType { }

Use implementations of this type as arguments to SQL Statements.

Safety

Considerations for implementers

Extend the crate::handles::HasDataType trait with the guarantee, that the bound parameter buffer contains at least one element.

Since the indicator provided by implementation is used to indicate the length of the value in the buffer, care must be taken to prevent out of bounds access in case the implementation also is used as an output parameter, an contains truncated values (i.e. the indicator is longer than the buffer and the value within).

Implementations on Foreign Types

impl InputParameter for f64[src]

impl InputParameter for f32[src]

impl InputParameter for Date[src]

impl InputParameter for i16[src]

impl InputParameter for i32[src]

impl InputParameter for i8[src]

impl InputParameter for i64[src]

impl InputParameter for CStr[src]

impl InputParameter for CString[src]

impl InputParameter for Box<dyn InputParameter>[src]

Loading content...

Implementors

impl InputParameter for Bit[src]

impl InputParameter for VarCharSlice<'_>[src]

impl<'a> InputParameter for VarCharBox[src]

impl<'a> InputParameter for VarCharSliceMut<'a>[src]

impl<T> InputParameter for WithDataType<T> where
    T: InputParameter
[src]

impl<T> InputParameter for Nullable<T> where
    T: Pod + HasDataType
[src]

impl<const LENGTH: usize> InputParameter for VarCharArray<LENGTH>[src]

Loading content...