pub trait InputParameter: HasDataType + CElement { }
Expand description

Can be used to fill in a fielf value indicated by a placeholder (?) then executing an SQL statement.

Trait Implementations§

source§

impl CData for Box<dyn InputParameter>

source§

fn cdata_type(&self) -> CDataType

The identifier of the C data type of the value buffer. When it is retrieving data from the data source with fetch, the driver converts the data to this type. When it sends data to the source, the driver converts the data from this type.
source§

fn indicator_ptr(&self) -> *const isize

Indicates the length of variable sized types. May be zero for fixed sized types. Used to determine the size or existence of input parameters.
source§

fn value_ptr(&self) -> *const c_void

Pointer to a value corresponding to the one described by cdata_type.
source§

fn buffer_length(&self) -> isize

Maximum length of the type in bytes (not characters). It is required to index values in bound buffers, if more than one parameter is bound. Can be set to zero for types not bound as parameter arrays, i.e. CStr.
source§

impl HasDataType for Box<dyn InputParameter>

source§

fn data_type(&self) -> DataType

The SQL data as which the parameter is bound to ODBC.
source§

impl CElement for Box<dyn InputParameter>

Implementations on Foreign Types§

source§

impl InputParameter for CStr

Implementors§