feat(sqlserver): flip driver manifest to editing-ready (#149)#233
Merged
debba merged 1 commit intoMay 21, 2026
Merged
Conversation
Closes Phase 2 of the SQL Server driver. Backend + frontend manifest
now report the driver as fully editable for INSERT / UPDATE / DELETE on
tables (single-PK, composite-PK, and IDENTITY-PK shapes).
Changes in src-tauri/src/drivers/sqlserver/mod.rs:
- version: 0.1.0 -> 0.2.0
- description: drops '(read-only preview)' suffix
- DriverCapabilities.manage_tables: false -> true
- DriverCapabilities.readonly: true -> false
- module doc comment updated to describe Phase 2 scope
- manifest_has_phase1_capabilities renamed to
manifest_has_phase2_capabilities; assertions inverted and
Phase 3 gates (alter_column, create_foreign_keys) pinned off
Frontend mirror in src/hooks/useDrivers.ts (FALLBACK_DRIVERS):
- version, description, manage_tables, readonly updated
to match the Rust manifest
alter_column and create_foreign_keys stay false; DDL generation
is Phase 3 work and is unchanged here.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Code Review SummaryStatus: 3 Observations | Recommendation: Address observations before merge Overview
No inline issues were found in the diff itself; all observations relate to unchanged code that becomes problematic once the capability bits are flipped. Other Observations (not in diff)Issues found in unchanged code that cannot receive inline comments:
Files Reviewed (2 files)
Fix these issues in Kilo Cloud Reviewed by kimi-k2.6-20260420 · 370,745 tokens |
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.
[Phase 2] Flip driver manifest to editing-ready (closes Phase 2)
Closes #149. Final Phase 2 PR — once #215 (insert) and #222 (composite UPDATE/DELETE) merge into
feat/sql-server, this one flips the capability bits so the UI actually exposes those editing surfaces.What changes
Backend —
src-tauri/src/drivers/sqlserver/mod.rsversion"0.1.0""0.2.0"description"Microsoft SQL Server (read-only preview)""Microsoft SQL Server"capabilities.manage_tablesfalsetruecapabilities.readonlytruefalsecapabilities.alter_columnfalsefalse(Phase 3)capabilities.create_foreign_keysfalsefalse(Phase 3)Module doc comment updated to describe Phase 2 scope.
manifest_has_phase1_capabilitiestest renamed tomanifest_has_phase2_capabilities, assertions inverted, and added explicit pins thatalter_column/create_foreign_keysstay off (Phase 3).Frontend —
src/hooks/useDrivers.tsMirrors the Rust manifest in
FALLBACK_DRIVERS(version,description,manage_tables,readonly). This is the offline fallback shown before the Tauri command returns; the real manifest comes from the driver itself, but keeping the fallback in sync avoids a flicker.What does NOT change
alter_columnandcreate_foreign_keysstayfalse— DDL generation is Phase 3.update_record/delete_recordon the driver still return a "Phase 1 read-only preview" error; the editing entry points are the composite variants (update_record_composite/delete_record_composite) introduced in [Phase 2] Foreign key composite aggregation (STRING_AGG + FOR XML PATH fallback) #146 / feat(frontend): composite primary key support end-to-end (#148) #222, which handle any arity including length-1 keys. The frontend in feat(frontend): composite primary key support end-to-end (#148) #222 routes through those.Manual QA
Marked done out-of-band against:
SET IDENTITY_INSERTTRY/CATCH wrap from feat(sqlserver): implement insert_record with IDENTITY_INSERT handling (#147) #215)Sequencing
This PR is the close-out of Phase 2 and is intentionally last. It depends on:
feat/sql-server)feat/sql-server)insert_record+IDENTITY_INSERTOnce those are in, this flip is a one-commit close-out and the whole
feat/sql-serverbranch can be squashed ontomain.Test results
ESLint clean on
src/hooks/useDrivers.ts.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com