Expand description
Independent Microsoft SQL Server driver crate for SQLx.
This crate is intentionally outside the SQLx workspace and does not use
local path dependencies. The current port includes tested connection
option parsing, PRELOGIN/LOGIN7 handshake support, TDS-wrapped TLS handshake
support for encrypted SQL Server connections, SQL batch execution,
transaction batches, and RPC execution for stable scalar bind parameters.
§Testing
Fast tests do not require SQL Server:
cargo testIntegration tests require MSSQL_DATABASE_URL and skip cleanly when it is
absent:
MSSQL_DATABASE_URL='mssql://sa:Password123!@localhost:1433/master?encrypt=mandatory&trust_server_certificate=true' \
cargo test --features integration-tests --test mssql_smokeRe-exports§
pub use options::Encrypt;pub use options::MssqlConnectOptions;pub use options::MssqlInvalidOption;
Modules§
- any
- Runtime
Anydriver registration for SQL Server. - options
- Connection option parsing and configuration for SQL Server.
- protocol
- Small protocol helpers covered by fast unit tests.
Structs§
- Mssql
- SQL Server database driver marker.
- Mssql
Arguments - SQL Server argument buffer.
- Mssql
Column - SQL Server column metadata skeleton.
- Mssql
Connection - SQL Server connection.
- Mssql
Query Result - Summary of a SQL Server query execution.
- Mssql
Row - SQL Server row skeleton.
- Mssql
Statement - SQL Server prepared statement metadata skeleton.
- Mssql
Transaction Manager - SQL Server transaction manager.
- Mssql
Type Info - SQL Server type information.
- Mssql
Value - Owned SQL Server value skeleton.
- Mssql
Value Ref - Borrowed SQL Server value skeleton.
Enums§
- Mssql
Type - SQL Server scalar type families known by the skeleton driver.
Traits§
- Mssql
Executor - An alias for
Executor<'_, Database = Mssql>.
Type Aliases§
- Mssql
Pool - An alias for
Pool, specialized for SQL Server. - Mssql
Pool Options - An alias for
PoolOptions, specialized for SQL Server. - Mssql
Transaction - An alias for
Transaction, specialized for SQL Server.