Skip to content

feat(drivers): add SQL Server driver via tiberius (#1957)#1958

Merged
datlechin merged 2 commits into
TableProApp:linuxfrom
Seha16:feat/linux-mssql-driver
Jul 26, 2026
Merged

feat(drivers): add SQL Server driver via tiberius (#1957)#1958
datlechin merged 2 commits into
TableProApp:linuxfrom
Seha16:feat/linux-mssql-driver

Conversation

@Seha16

@Seha16 Seha16 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Microsoft SQL Server driver to the Linux port — crates/drivers/mssql on tiberius (pure-Rust TDS) with rustls TLS — implementing the "MSSQL via tiberius" item from ROADMAP.md. Fixes Linux: add Microsoft SQL Server driver (tiberius) #1957.
  • Full core::Connection: connect (SQL auth, encryption from use_tls, trust-cert), introspection (tables / columns / indexes / FKs via sys, with PK / IDENTITY / computed / default detection), OFFSET … FETCH pagination, arbitrary + parameterized query/execute, and atomic execute_in_transaction.
  • Core sql_dialect/sql_ddl gain mssql arms ([bracket] quoting, @Pn params, IDENTITY(1,1), sp_rename, ALTER COLUMN, DROP INDEX … ON, DROP CONSTRAINT); other engines are byte-for-byte unchanged. Registered in the app — the registry-driven dialog lists "SQL Server" (port 1433).

Test plan

  • cargo build --workspace
  • cargo test --workspace --lib (type/default/error mapping + every dialect/DDL builder)
  • cargo test -p tablepro-driver-mssql --test integration -- --include-ignored against a real server — connect, introspection (PK/IDENTITY), all-types value roundtrip + @P binding, OFFSET/FETCH pagination, error mapping — 4/4 pass
  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings

Engine tested against: SQL Server 2022 (CU14, mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04).

No new UI widgets or layout — the connection dialog is registry-driven, so "SQL Server" appears automatically; no before/after screenshots apply.

Known limitations

  • SQL Server authentication only (Windows/Kerberos auth is not modelled by ConnectOptions).
  • Column reorder is unsupported (MySQL-only, matching existing gating); an ALTER COLUMN changing only a default is a no-op (MSSQL named-constraint management deferred).
  • XML columns surface as text; one connection per session, serialized by a mutex.

@Seha16

Seha16 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Testing evidence on:
Linux 7.1.4-arch1-1 SMP PREEMPT_DYNAMIC Sat, 18 Jul 2026 17:30:57 +0000 x86_64 GNU/Linux

screenrecording-2026-07-25_15-13-21.mp4

@datlechin datlechin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@datlechin
datlechin merged commit ff466d5 into TableProApp:linux Jul 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants