Trait odbc_api::parameter::Parameter[][src]

pub unsafe trait Parameter {
    unsafe fn bind_parameter(
        self,
        parameter_number: u16,
        stmt: &mut StatementImpl<'_>
    ) -> Result<(), Error>; }

Implementers of this trait can be used as individual parameters of in a crate::ParameterCollection. They can be bound as either input parameters, output parameters or both.

Required methods

unsafe fn bind_parameter(
    self,
    parameter_number: u16,
    stmt: &mut StatementImpl<'_>
) -> Result<(), Error>
[src]

Bind the parameter in question to a specific parameter_number.

Safety

Since the parameter is now bound to stmt callers must take care that it is ensured that the parameter remains valid while it is bound. If the parameter is bound as an output parameter it must also be ensured that it is exclusivly referenced by statement.

Loading content...

Implementations on Foreign Types

impl<T> Parameter for &T where
    T: InputParameter
[src]

Bind immutable references as input parameters.

impl<T> Parameter for &mut T where
    T: Output
[src]

Bind mutable references as input/output parameter.

Loading content...

Implementors

impl<'a, T> Parameter for Out<'a, T> where
    T: Output
[src]

Mutable references wrapped in Out are bound as output parameters.

Loading content...