Skip to content

feat: sqlserver connector + tests + Docs#8905

Open
royendo wants to merge 16 commits intomainfrom
feat-sqlserver-connector
Open

feat: sqlserver connector + tests + Docs#8905
royendo wants to merge 16 commits intomainfrom
feat-sqlserver-connector

Conversation

@royendo
Copy link
Contributor

@royendo royendo commented Feb 23, 2026

Adds a SQL Server connector as both a SQL store and OLAP driver, enabling users to connect to SQL Server databases from Rill Developer and Rill Cloud.

  • Backend driver (runtime/drivers/sqlserver/) with DSN resolution (dual mssql:// / sqlserver:// formats), OLAP query execution, and information_schema browsing
  • DuckDB integration via the community mssql extension for model materialization (mssql_scan)
  • Frontend schema with dual connection modes (parameters vs DSN), connector icons, and table explorer support
  • Integration tests using testcontainers-go mssql module with an ephemeral SQL Server 2022 Docker container, covering all 27 mapped data types
Screenshot 2026-02-22 at 19 14 51 Screenshot 2026-02-22 at 19 14 35**Checklist:** - [ ] Covered by tests - [ ] Ran it and it works as intended - [ ] Reviewed the diff before requesting a review - [ ] Checked for unhandled edge cases - [ ] Linked the issues it closes - [ ] Checked if the docs need to be updated. If so, create a separate Linear DOCS issue - [ ] Intend to cherry-pick into the release branch - [ ] I'm proud of this work!

Developed in collaboration with Claude Code

TestOLAP — 22/22 passed in ~145s (mostly container startup)

Sub-suite	Tests	Status
MapScan	12 tests — BIT, TINYINT, SMALLINT, INT, BIGINT, REAL, FLOAT, VARCHAR, NVARCHAR, UNIQUEIDENTIFIER, XML, NULL	All pass
Scan	6 tests — Null, Integer types, Floating point, String types, Date/Time, Boolean (BIT)	All pass
EmptyRows	1 test — schema returned for TOP 0 query	Pass
Exec	1 test — DryRun, CREATE TABLE, DROP TABLE	Pass
FullTableScan	1 test — all 27 columns across 3 rows	Pass
The Docker container (mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04) started successfully, init SQL seeded the testDB database with all SQL Server data types, and all type mappings from go-mssqldb matched expectations (int64 for integers, bool for BIT, float64 for REAL/FLOAT, time.Time for temporals, []byte for BINARY/UNIQUEIDENTIFIER, string for text/XML types).
@royendo royendo changed the title feat: sqlserver connector feat: sqlserver connector + tests Feb 23, 2026
@royendo royendo changed the title feat: sqlserver connector + tests feat: sqlserver connector + tests + Docs Feb 24, 2026
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.

1 participant