Available on crate feature
odbc only.Expand description
ODBC database driver (via odbc-api).
§Connection Strings
When using the Any connection type, SQLx accepts standard ODBC connection strings:
// DSN-based connection
DSN=MyDataSource;UID=myuser;PWD=mypassword
// Driver-based connection
Driver={ODBC Driver 17 for SQL Server};Server=localhost;Database=test
// File DSN
FILEDSN=/path/to/myfile.dsnThe odbc: URL scheme prefix is optional but still supported for backward compatibility:
odbc:DSN=MyDataSourceModules§
Structs§
- Odbc
- Odbc
Arguments - Odbc
Column - Odbc
Connect Options - Odbc
Connection - A connection to an ODBC-accessible database.
- Odbc
Query Result - OdbcRow
- Odbc
Statement - Odbc
Statement Metadata - Odbc
Transaction Manager - Odbc
Type Info - Type information for an ODBC type.
- Odbc
Value - Odbc
Value Ref
Enums§
Traits§
- Data
Type Ext - Extension trait for DataType with helper methods
- Odbc
Executor - An alias for
Executor<'_, Database = Odbc>.
Type Aliases§
- Odbc
Pool - An alias for
Pool, specialized for ODBC. - Odbc
Pool Options - An alias for
PoolOptions, specialized for ODBC.