Enum odbc_sys::InfoType

source ·
#[repr(u16)]
pub enum InfoType {
Show 60 variants MaxDriverConnections = 0, MaxConcurrentActivities = 1, DataSourceName = 2, ServerName = 13, SearchPatternEscape = 14, DbmsName = 17, DbmsVer = 18, AccessibleTables = 19, AccessibleProcedures = 20, CursorCommitBehaviour = 23, DataSourceReadOnly = 25, DefaultTxnIsolation = 26, IdentifierCase = 28, IdentifierQuoteChar = 29, MaxColumnNameLen = 30, MaxCursorNameLen = 31, MaxSchemaNameLen = 32, MaxCatalogNameLen = 34, MaxTableNameLen = 35, ScrollOptions = 44, TransactionCapable = 46, UserName = 47, TransactionIsolationProtocol = 72, Integrity = 73, GetDataExtensions = 81, NullCollation = 85, AlterTable = 86, OrderByColumnsInSelect = 90, SpecialCharacters = 94, MaxColumnsInGroupBy = 97, MaxColumnsInIndex = 98, MaxColumnsInOrderBy = 99, MaxColumnsInSelect = 100, MaxColumnsInTable = 101, MaxIndexSize = 102, MaxRowSize = 104, MaxStatementLen = 105, MaxTablesInSelect = 106, MaxUserNameLen = 107, OuterJoinCapabilities = 115, ActiveEnvironments = 116, DynamicCursorAttributes1 = 144, DynamicCursorAttributes2 = 145, ForwardOnlyCursorAttributes1 = 146, ForwardOnlyCursorAttributes2 = 147, KeysetCursorAttributes1 = 150, KeysetCursorAttributes2 = 151, StaticCursorAttributes1 = 167, StaticCursorAttributes2 = 168, XopenCliYear = 10_000, CursorSensitivity = 10_001, DescribeParameter = 10_002, CatalogName = 10_003, CollationSeq = 10_004, MaxIdentifierLen = 10_005, AsyncMode = 10_021, MaxAsyncConcurrentStatements = 10_022, AsyncDbcFunctions = 10_023, DriverAwarePoolingSupported = 10_024, AsyncNotification = 10_025,
}
Expand description

Information requested by SQLGetInfo

Variants§

§

MaxDriverConnections = 0

§

MaxConcurrentActivities = 1

§

DataSourceName = 2

§

ServerName = 13

§

SearchPatternEscape = 14

§

DbmsName = 17

§

DbmsVer = 18

§

AccessibleTables = 19

§

AccessibleProcedures = 20

§

CursorCommitBehaviour = 23

§

DataSourceReadOnly = 25

§

DefaultTxnIsolation = 26

§

IdentifierCase = 28

§

IdentifierQuoteChar = 29

§

MaxColumnNameLen = 30

§

MaxCursorNameLen = 31

§

MaxSchemaNameLen = 32

§

MaxCatalogNameLen = 34

§

MaxTableNameLen = 35

§

ScrollOptions = 44

SQL_SCROLL_OPTIONS C-API places this in the extended header. Lists the supported cursor types (forward-only, static, keyset-driven, dynamic, or mixed). All data sources must support forward-only cursors. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

TransactionCapable = 46

§

UserName = 47

§

TransactionIsolationProtocol = 72

§

Integrity = 73

§

GetDataExtensions = 81

§

NullCollation = 85

§

AlterTable = 86

§

OrderByColumnsInSelect = 90

§

SpecialCharacters = 94

§

MaxColumnsInGroupBy = 97

§

MaxColumnsInIndex = 98

§

MaxColumnsInOrderBy = 99

§

MaxColumnsInSelect = 100

§

MaxColumnsInTable = 101

§

MaxIndexSize = 102

§

MaxRowSize = 104

§

MaxStatementLen = 105

§

MaxTablesInSelect = 106

§

MaxUserNameLen = 107

§

OuterJoinCapabilities = 115

§

ActiveEnvironments = 116

SQL_ACTIVE_ENVIRONMENTS C-API places this in the extended header. A u16 value that specifies the maximum number of active environments that the driver can support. If there is no specified limit or the limit is unknown, this value is set to zero.

§

DynamicCursorAttributes1 = 144

SQL_DYNAMIC_CURSOR_ATTRIBUTES1 C-API places this in the extended header. Lists the fetch types supported by scrollable cursors. The bits in the return value correspond to the fetch types in SQLFetchScroll. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

DynamicCursorAttributes2 = 145

SQL_DYNAMIC_CURSOR_ATTRIBUTES2 C-API places this in the extended header. Lists whether cursors can detect their own updates, deletes, and inserts. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

ForwardOnlyCursorAttributes1 = 146

SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1 C-API places this in the extended header. Lists the fetch types supported by scrollable cursors. The bits in the return value correspond to the fetch types in SQLFetchScroll. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

ForwardOnlyCursorAttributes2 = 147

SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 C-API places this in the extended header. Lists whether cursors can detect their own updates, deletes, and inserts. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

KeysetCursorAttributes1 = 150

SQL_KEYSET_CURSOR_ATTRIBUTES1 C-API places this in the extended header. Lists the fetch types supported by scrollable cursors. The bits in the return value correspond to the fetch types in SQLFetchScroll. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

KeysetCursorAttributes2 = 151

SQL_KEYSET_CURSOR_ATTRIBUTES2 C-API places this in the extended header. Lists whether cursors can detect their own updates, deletes, and inserts. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

StaticCursorAttributes1 = 167

SQL_STATIC_CURSOR_ATTRIBUTES1 C-API places this in the extended header. Lists the fetch types supported by scrollable cursors. The bits in the return value correspond to the fetch types in SQLFetchScroll. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

StaticCursorAttributes2 = 168

SQL_STATIC_CURSOR_ATTRIBUTES2 C-API places this in the extended header. Lists whether cursors can detect their own updates, deletes, and inserts. See: https://learn.microsoft.com/sql/odbc/reference/develop-app/determining-cursor-capabilities

§

XopenCliYear = 10_000

§

CursorSensitivity = 10_001

§

DescribeParameter = 10_002

§

CatalogName = 10_003

§

CollationSeq = 10_004

§

MaxIdentifierLen = 10_005

§

AsyncMode = 10_021

§

MaxAsyncConcurrentStatements = 10_022

§

AsyncDbcFunctions = 10_023

§

DriverAwarePoolingSupported = 10_024

§

AsyncNotification = 10_025

Trait Implementations§

source§

impl Clone for InfoType

source§

fn clone(&self) -> InfoType

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 InfoType

source§

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

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

impl PartialEq for InfoType

source§

fn eq(&self, other: &InfoType) -> 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 InfoType

source§

impl Eq for InfoType

source§

impl StructuralEq for InfoType

source§

impl StructuralPartialEq for InfoType

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.