added typeaheead and introspetion

This commit is contained in:
Mark Gregory
2026-10-18 17:11:33 +01:00
parent bcd33b3fa5
commit 9609cb31c1
5 changed files with 373 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
# DBSyn Phase 62 — Schema Change Review
Right-click a database in the Schemas navigator and choose **Review Schema Changes…**.
Select **Refresh Introspection** to retrieve the latest table, view, and column metadata. DBSyn compares the new snapshot with the previous cached snapshot, reporting added and removed tables/views/columns, and changed column attributes. Existing persistent introspection snapshots provide the baseline across launches. The change report is session-only; the current snapshot is saved for the next comparison.
The first introspection without a previous snapshot establishes the baseline and does not report differences. Failed introspections preserve the previous snapshot and do not create a comparison report. No database schema is modified by this feature.
Validation: source changes reviewed and ZIP integrity checked; macOS compilation and live MySQL testing remain necessary.
+14
View File
@@ -0,0 +1,14 @@
# Phase 63 — Query Plan Review
Extends the existing EXPLAIN inspector with a conservative, read-only query-plan review panel.
- Summarises MySQL tabular EXPLAIN steps and flags large full scans (estimated rows >= 10,000), extra sorting and temporary results.
- Explains each finding and provides context-aware next steps without creating indexes or running SELECT statements.
- Offers **Copy Review** to share a plain-text report with SQL and findings.
- Supports both System, Light and Dark appearances through adaptive SwiftUI colours.
- JSON EXPLAIN remains supported; switch to Table to use the per-step diagnostic rules.
- Existing SQL autosuggest, persistent introspection, schema-change review and graph dashboards are preserved.
The review uses optimizer estimates, not measured execution timings. An unflagged plan is not proof of good performance.
Validation: static source checks and ZIP integrity only. Requires macOS Xcode build and live MySQL verification.
+5
View File
@@ -0,0 +1,5 @@
# Phase 64 — Schema Structure Comparison
Right-click a schema and choose **Compare Schema Structures…**. Select a second database on the same connection. Refresh source and target introspection snapshots, review tables, views, columns and column attribute differences, and copy a text report. This phase is deliberately read-only: no DDL is executed and no automatic synchronisation is attempted.
Requires validation with Xcode and a live MySQL server.