Expand description
ODBC types those representation is compatible with the ODBC C API.
This layer has not been created using automatic code generation. It is incomplete, i.e. it does
not contain every symbol or constant defined in the ODBC C headers. Symbols which are
deprecated since ODBC 3 have been left out intentionally. While some extra type safety has been
added by grouping some of C’s #define constants into enum-types it mostly offers the same
power (all) and safety guarantess(none) as the wrapped C-API.
ODBC 4.0 is still under development by Microsoft, so these symbols are deactivated by default
in the cargo.toml
Re-exports§
pub use SQL_C_ULONG as SQL_C_BOOKMARK;pub use self::SQLRETURN::*;pub use self::InfoType::*;pub use self::FetchOrientation::*;pub use self::EnvironmentAttribute::*;pub use self::SqlCDataType::*;pub use self::SqlDataType::*;pub use self::HandleType::*;pub use self::SqlDriverConnectOption::*;
Enums§
- Dbc
- Env
- Environment
Attribute - Governs behaviour of EnvironmentAttribute
- Fetch
Orientation - Codes used for FetchOrientation in
SQLFetchScroll,SQLDataSourcesand inSQLDrivers - Handle
Type - Represented in C headers as SQLSMALLINT
- Info
Type - Information requested by SQLGetInfo
- Obj
- SQLRETURN
- Indicates the overall success or failure of the function
- SqlC
Data Type - The C data type is specified in the SQLBindCol and SQLGetData functions with the TargetType argument and in the SQLBindParameter function with the ValueType argument.
- SqlData
Type - SQL Data Types
- SqlDriver
Connect Option - Options for
SQLDriverConnect - Stmt
Constants§
- SQL_
MAX_ MESSAGE_ LENGTH - Maximum message length
- SQL_
NO_ TOTAL - SQL_NTS
- SQL_
NTSL - SQL_
NULL_ DATA - SQL_
OV_ ODBC2 - SQL_
OV_ ODBC3 - SQL_
OV_ ODBC3_ 80 - SQL_
SQLSTATE_ SIZE
Functions§
- SQLAlloc
Handle ⚠ - Allocates an environment, connection, statement, or descriptor handle.
- SQLClose
Cursor ⚠ - Closes a cursor that has been opened on a statement and discards pending results.
- SQLConnect⚠
- SQLConnect establishes connections to a driver and a data source.
- SQLData
Sources ⚠ - Returns information about a data source. This function is implemented only by the Driver Manager.
- SQLDisconnect⚠
- Closes the connection associated with a specific connection handle.
- SQLDriver
Connect ⚠ - An alternative to
SQLConnect. It supports data sources that require more connection information than the three arguments inSQLConnect, dialog boxes to prompt the user for all connection information, and data sources that are not defined in the system information - SQLDrivers⚠
- Lists driver descriptions and driver attribute keywords. This function is implemented only by the Driver Manager.
- SQLExec
Direct ⚠ - SQLFetch⚠
- SQLFetch fetches the next rowset of data from the result set and returns data for all bound columns.
- SQLFree
Handle ⚠ - Frees resources associated with a specific environment, connection, statement, or descriptor handle.
- SQLGet
Data ⚠ - SQLGet
Diag ⚠Rec - SQLGet
Info ⚠ - Returns general information about the driver and data source associated with a connection
- SQLNum
Result ⚠Cols - SQLSet
EnvAttr ⚠ - Sets attributes that govern aspects of environments
- SQLTables⚠
- Returns the list of table, catalog, or schema names, and table types, stored in a specific data source. The driver returns the information as a result set
Type Aliases§
- SQLCHAR
- SQLHANDLE
- SQLHDBC
- The connection handle references storage of all information about the connection to the data source, including status, transaction state, and error information.
- SQLHENV
- SQLHSTMT
- SQLHWND
- SQLINTEGER
- SQLLEN
- SQLPOINTER
- SQLSMALLINT
- 16 Bit signed integer
- SQLUSMALLINT