Skip to content

feat(db-client): add mssql driver support with routine browsing and query log#426

Open
rust142 wants to merge 4 commits into
myrialabs:mainfrom
rust142:dev/mssql
Open

feat(db-client): add mssql driver support with routine browsing and query log#426
rust142 wants to merge 4 commits into
myrialabs:mainfrom
rust142:dev/mssql

Conversation

@rust142

@rust142 rust142 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Add full MSSQL (Microsoft SQL Server) support to the database client, including a new MssqlAdapter using the 'mssql' npm library, CHECK constraint migration, SQL builder functions, and frontend integration. Alongside the new driver, introduce routine (function/procedure) browsing for MySQL and Postgres, an interactive ER diagram view, server-side query logs, a local in-memory query activity log, DDL tab in structure manager, and blank-line-based SQL statement splitting.

rust142 added 4 commits July 16, 2026 12:37
…uery log

Add full MSSQL (Microsoft SQL Server) support to the database client, including a new MssqlAdapter using the 'mssql' npm library, CHECK constraint migration, SQL builder functions, and frontend integration. Alongside the new driver, introduce routine (function/procedure) browsing for MySQL and Postgres, an interactive ER diagram view, server-side query logs, a local in-memory query activity log, DDL tab in structure manager, and blank-line-based SQL statement splitting.
DDL statements like CREATE/ALTER PROCEDURE must be the only statement in a batch in MSSQL. The previous approach of prepending `USE database;\n` to the query caused batch errors because DDL statements cannot be combined with other statements. Now `USE` is executed as a separate request before the DDL, with a transaction wrapping the workflow for multi-statement result handling. Also adds an editable DDL editor with "Update" button for routines in the frontend.
…es in tab bar

Previously all tabs displayed a generic table icon regardless of whether the underlying object was a table, view, procedure, or function. This change maps each object type to a distinct icon (terminal for procedures, code for functions, eye for views) so users can visually distinguish tab types at a glance without reading the label.
… sessions

Enable MSSQL for database operations (drop, rename, empty, reset, duplicate, copy-create) and the database tree view. Also persist and restore the opened database per connection in view snapshots so the sidebar state survives page refreshes.
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