Module odbc

Module odbc 

Source
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.dsn

The odbc: URL scheme prefix is optional but still supported for backward compatibility:

odbc:DSN=MyDataSource

Modules§

statement
types

Structs§

Odbc
OdbcArguments
OdbcColumn
OdbcConnectOptions
OdbcConnection
A connection to an ODBC-accessible database.
OdbcQueryResult
OdbcRow
OdbcStatement
OdbcStatementMetadata
OdbcTransactionManager
OdbcTypeInfo
Type information for an ODBC type.
OdbcValue
OdbcValueRef

Enums§

OdbcArgumentValue

Traits§

DataTypeExt
Extension trait for DataType with helper methods
OdbcExecutor
An alias for Executor<'_, Database = Odbc>.

Type Aliases§

OdbcPool
An alias for Pool, specialized for ODBC.
OdbcPoolOptions
An alias for PoolOptions, specialized for ODBC.