Skip to main content

Module mssql

Module mssql 

Source
Expand description

Layer: Execution — MSSQL / SQL Server source engine.

Third SQL engine after PostgreSQL and MySQL. The tiberius driver is async (tokio); the Source trait is sync &mut self (ADR-0011), so each MssqlSource owns a current-thread tokio runtime and block_ons every driver call — no async leaks into the runner.

Dialect deltas vs PG/MySQL (routed through the shared seams):

  • identifier quoting [col] (sql::quote_ident)
  • cursor literal N'…' with '' escaping (query::cursor_rhs)
  • introspection via sys.* catalog views

Supported today: snapshot / incremental / chunked (range + dense) and keyset (seek) export, check --type-report, doctor, chunked-mode planning. The keyset page builder emits a dialect-correct OFFSET 0 ROWS FETCH NEXT n ROWS ONLY clause (T-SQL has no LIMIT).

Structs§

MssqlSource
SQL Server source. Owns the async driver + the runtime that drives it.

Enums§

MssqlProxyKind
What the SQL Server connection is actually talking to.