Enum odbc_sys::StatementAttribute[][src]

#[repr(i32)]
pub enum StatementAttribute {
Show variants AppRowDesc, AppParamDesc, ImpRowDesc, ImpParamDesc, CursorScrollable, CursorSensitivity, AsyncEnable, Concurrency, CursorType, EnableAutoIpd, FetchBookmarkPtr, KeysetSize, MaxLength, MaxRows, NoScan, ParamBindOffsetPtr, ParamBindType, ParamOpterationPtr, ParamStatusPtr, ParamsProcessedPtr, ParamsetSize, QueryTimeout, RetrieveData, RowBindOffsetPtr, RowBindType, RowNumber, RowOperationPtr, RowStatusPtr, RowsFetchedPtr, RowArraySize, SimulateCursor, UseBookmarks, AsyncStmtEvent,
}

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

SQL_ATTR_APP_ROW_DESC

AppParamDesc

SQL_ATTR_APP_PARAM_DESC

ImpRowDesc

SQL_ATTR_IMP_ROW_DESC

ImpParamDesc

SQL_ATTR_IMP_PARAM_DESC

CursorScrollable

SQL_ATTR_CURSOR_SCROLLABLE

CursorSensitivity

SQL_ATTR_CURSOR_SENSITIVITY

AsyncEnable

SQL_ATTR_ASYNC_ENABLE

Concurrency

SQL_ATTR_CONCURRENCY

CursorType

SQL_ATTR_CURSOR_TYPE

EnableAutoIpd

SQL_ATTR_ENABLE_AUTO_IPD

FetchBookmarkPtr

SQL_ATTR_FETCH_BOOKMARK_PTR

KeysetSize

SQL_ATTR_KEYSET_SIZE

MaxLength

SQL_ATTR_MAX_LENGTH

MaxRows

SQL_ATTR_MAX_ROWS

NoScan

SQL_ATTR_NOSCAN

ParamBindOffsetPtr

SQL_ATTR_PARAM_BIND_OFFSET_PTR

ParamBindType

SQL_ATTR_PARAM_BIND_TYPE

ParamOpterationPtr

SQL_ATTR_PARAM_OPERATION_PTR

ParamStatusPtr

SQL_ATTR_PARAM_STATUS_PTR

ParamsProcessedPtr

SQL_ATTR_PARAMS_PROCESSED_PTR

ParamsetSize
QueryTimeout

SQL_ATTR_QUERY_TIMEOUT

RetrieveData

SQL_ATTR_RETRIEVE_DATA

RowBindOffsetPtr

SQL_ATTR_ROW_BIND_OFFSET_PTR

RowBindType

SQL_ATTR_ROW_BIND_TYPE

RowNumber

SQL_ATTR_ROW_NUMBER GetStmtAttr

RowOperationPtr

SQL_ATTR_ROW_OPERATION_PTR

RowStatusPtr

SQL_ATTR_ROW_STATUS_PTR

RowsFetchedPtr

SQL_ATTR_ROWS_FETCHED_PTR

RowArraySize

SQL_ATTR_ROW_ARRAY_SIZE

SimulateCursor

SQL_ATTR_SIMULATE_CURSOR

UseBookmarks

SQL_ATTR_USE_BOOKMARKS

AsyncStmtEvent

SQL_ATTR_ASYNC_STMT_EVENT

Trait Implementations

impl Clone for StatementAttribute[src]

impl Copy for StatementAttribute[src]

impl Debug for StatementAttribute[src]

impl Eq for StatementAttribute[src]

impl PartialEq<StatementAttribute> for StatementAttribute[src]

impl StructuralEq for StatementAttribute[src]

impl StructuralPartialEq for StatementAttribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.