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

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

Can be bound to a single Placeholder in an SQL statement.

Users usually won't utilize this trait directly, but implementations of Parameters are likely to bind one or more instances of SingleParameter to a statement.

Required methods

unsafe fn bind_parameter_to(
    &self,
    stmt: &mut Statement<'_>,
    parameter_number: u16
) -> Result<(), Error>

Parameters

  • stmt: Statement handle the parameter should be bound to.
  • parameter_number: 1 based index of the parameter. The index refers to the position of the ? placeholder in the SQL statement text.

Safety

Implementers should take care that the values bound by this method to the statement live at least for the Duration of self. The most straight forward way of achieving this is of course, to bind members.

Loading content...

Implementations on Foreign Types

impl Parameter for f64[src]

impl Parameter for f32[src]

impl Parameter for Date[src]

impl Parameter for i16[src]

impl Parameter for i32[src]

impl Parameter for i8[src]

impl Parameter for i64[src]

Loading content...

Implementors

impl Parameter for Bit[src]

impl<'_> Parameter for VarCharParam<'_>[src]

impl<T> Parameter for WithDataType<T> where
    T: FixedSizedCType
[src]

Loading content...