feat(db-client): add mssql driver support with routine browsing and query log#426
Open
rust142 wants to merge 4 commits into
Open
feat(db-client): add mssql driver support with routine browsing and query log#426rust142 wants to merge 4 commits into
rust142 wants to merge 4 commits into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.