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,
}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
SQL_ATTR_APP_ROW_DESC
SQL_ATTR_APP_PARAM_DESC
SQL_ATTR_IMP_ROW_DESC
SQL_ATTR_IMP_PARAM_DESC
SQL_ATTR_CURSOR_SCROLLABLE
SQL_ATTR_CURSOR_SENSITIVITY
SQL_ATTR_ASYNC_ENABLE
SQL_ATTR_CONCURRENCY
SQL_ATTR_CURSOR_TYPE
SQL_ATTR_ENABLE_AUTO_IPD
SQL_ATTR_FETCH_BOOKMARK_PTR
SQL_ATTR_KEYSET_SIZE
SQL_ATTR_MAX_LENGTH
SQL_ATTR_MAX_ROWS
SQL_ATTR_NOSCAN
SQL_ATTR_PARAM_BIND_OFFSET_PTR
SQL_ATTR_PARAM_BIND_TYPE
SQL_ATTR_PARAM_OPERATION_PTR
SQL_ATTR_PARAM_STATUS_PTR
SQL_ATTR_PARAMS_PROCESSED_PTR
SQL_ATTR_QUERY_TIMEOUT
SQL_ATTR_RETRIEVE_DATA
SQL_ATTR_ROW_BIND_OFFSET_PTR
SQL_ATTR_ROW_BIND_TYPE
SQL_ATTR_ROW_NUMBER GetStmtAttr
SQL_ATTR_ROW_OPERATION_PTR
SQL_ATTR_ROW_STATUS_PTR
SQL_ATTR_ROWS_FETCHED_PTR
SQL_ATTR_ROW_ARRAY_SIZE
SQL_ATTR_SIMULATE_CURSOR
SQL_ATTR_USE_BOOKMARKS
SQL_ATTR_ASYNC_STMT_EVENT
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StatementAttributeimpl Send for StatementAttributeimpl Sync for StatementAttributeimpl Unpin for StatementAttributeimpl UnwindSafe for StatementAttributeBlanket Implementations
Mutably borrows from an owned value. Read more