#[repr(i32)]
pub enum StatementAttribute {
Show 34 variants AppRowDesc = 10_010, AppParamDesc = 10_011, ImpRowDesc = 10_012, ImpParamDesc = 10_013, CursorScrollable = -1, CursorSensitivity = -2, AsyncEnable = 4, Concurrency = 7, CursorType = 6, EnableAutoIpd = 15, FetchBookmarkPtr = 16, KeysetSize = 8, MaxLength = 3, MaxRows = 1, NoScan = 2, ParamBindOffsetPtr = 17, ParamBindType = 18, ParamOpterationPtr = 19, ParamStatusPtr = 20, ParamsProcessedPtr = 21, ParamsetSize = 22, QueryTimeout = 0, RetrieveData = 11, RowBindOffsetPtr = 23, RowBindType = 5, RowNumber = 14, RowOperationPtr = 24, RowStatusPtr = 25, RowsFetchedPtr = 26, RowArraySize = 27, SimulateCursor = 10, UseBookmarks = 12, AsyncStmtEvent = 29, MetadataId = 10_014,
}
Expand description

Statement attributes are characteristics of the statement. For example, whether to use bookmarks and what kind of cursor to use with the statement’s result set are statement attributes.

Statement attributes are set with SQLSetStmtAttr and their current settings retrieved with SQLGetStmtAttr. There is no requirement that an application set any statement attributes; all statement attributes have defaults, some of which are driver-specific. When a statement attribute can be set depends on the attribute itself. The Concurrency, CursorType, SimulateCursor, and UseBookmarsstatement attributes must be set before the statement is executed. TheAsyncEnableandNoScanstatement attributes can be set at any time but are not applied until the statement is used again.MaxLength, MaxRows, and QueryTimeout` statement attributes can be set at any time, but it is driver-specific whether they are applied before the statement is used again. The remaining statement attributes can be set at any time.

Variants§

§

AppRowDesc = 10_010

SQL_ATTR_APP_ROW_DESC

§

AppParamDesc = 10_011

SQL_ATTR_APP_PARAM_DESC

§

ImpRowDesc = 10_012

SQL_ATTR_IMP_ROW_DESC

§

ImpParamDesc = 10_013

SQL_ATTR_IMP_PARAM_DESC

§

CursorScrollable = -1

SQL_ATTR_CURSOR_SCROLLABLE

§

CursorSensitivity = -2

SQL_ATTR_CURSOR_SENSITIVITY

§

AsyncEnable = 4

SQL_ATTR_ASYNC_ENABLE

§

Concurrency = 7

SQL_ATTR_CONCURRENCY

§

CursorType = 6

SQL_ATTR_CURSOR_TYPE

§

EnableAutoIpd = 15

SQL_ATTR_ENABLE_AUTO_IPD

§

FetchBookmarkPtr = 16

SQL_ATTR_FETCH_BOOKMARK_PTR

§

KeysetSize = 8

SQL_ATTR_KEYSET_SIZE

§

MaxLength = 3

SQL_ATTR_MAX_LENGTH

§

MaxRows = 1

SQL_ATTR_MAX_ROWS

§

NoScan = 2

SQL_ATTR_NOSCAN

§

ParamBindOffsetPtr = 17

SQL_ATTR_PARAM_BIND_OFFSET_PTR

§

ParamBindType = 18

SQL_ATTR_PARAM_BIND_TYPE

§

ParamOpterationPtr = 19

SQL_ATTR_PARAM_OPERATION_PTR

§

ParamStatusPtr = 20

SQL_ATTR_PARAM_STATUS_PTR

§

ParamsProcessedPtr = 21

SQL_ATTR_PARAMS_PROCESSED_PTR

§

ParamsetSize = 22

§

QueryTimeout = 0

SQL_ATTR_QUERY_TIMEOUT

§

RetrieveData = 11

SQL_ATTR_RETRIEVE_DATA

§

RowBindOffsetPtr = 23

SQL_ATTR_ROW_BIND_OFFSET_PTR

§

RowBindType = 5

SQL_ATTR_ROW_BIND_TYPE

§

RowNumber = 14

SQL_ATTR_ROW_NUMBER GetStmtAttr

§

RowOperationPtr = 24

SQL_ATTR_ROW_OPERATION_PTR

§

RowStatusPtr = 25

SQL_ATTR_ROW_STATUS_PTR

§

RowsFetchedPtr = 26

SQL_ATTR_ROWS_FETCHED_PTR

§

RowArraySize = 27

SQL_ATTR_ROW_ARRAY_SIZE

§

SimulateCursor = 10

SQL_ATTR_SIMULATE_CURSOR

§

UseBookmarks = 12

SQL_ATTR_USE_BOOKMARKS

§

AsyncStmtEvent = 29

SQL_ATTR_ASYNC_STMT_EVENT

§

MetadataId = 10_014

SQL_ATTR_METADATA_ID

Trait Implementations§

source§

impl Clone for StatementAttribute

source§

fn clone(&self) -> StatementAttribute

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StatementAttribute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for StatementAttribute

source§

fn eq(&self, other: &StatementAttribute) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for StatementAttribute

source§

impl Eq for StatementAttribute

source§

impl StructuralEq for StatementAttribute

source§

impl StructuralPartialEq for StatementAttribute

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.