Fix review findings: FK correctness, OOM caches, and scale#112
Merged
Conversation
Require user cloud credentials on multi-user hosts, allowlist Azure vault URLs, and fix DataGrid/CodeQL quality issues from the scan. Co-authored-by: Cursor <cursoragent@cursor.com>
Open tables from the schema explorer to add/edit/drop columns, set PK and dialect identity, create/drop tables, and insert or apply ALTER SQL. Includes dialect type dropdowns, length/precision editors, and SQL badges on the statement strip. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace unbounded Map-based pool caches with BoundedPoolCache and disposePoolEndOrClose across postgres, mysql, sqlserver, azuresql, db2, oracle, and redshift adapters; export the helpers from core. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Harden composite FK reorder/DDL, secret-safe schemaApi keys, MySQL FK pairing, OOM-safe page/schema caches and pool eviction, fail-closed SQL paging, CLI normalizeTableSchemas, SQLite PRAGMA batching, Kahn FK order, dialect FK matrix, dependency tokenize, and completion tries. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Satisfy ColumnInfo required fields so apps/web tsc --noEmit passes. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Export dialectSupportsFk from the browser core entry so the web app boots. Add SQL Editor e2e for table blueprint + result paging, tokenize dependency scan unit tests, and skip SQLite dialect migration (SELECT-only adapter). Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Include schema and a non-secret password fingerprint in cacheKeyForRef so saved connections with different schemas or session passwords do not share inflight/TTL entries. Fingerprint connectionString for ad-hoc paths too. Rebuild autocomplete tries when table/column names change, not only counts. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
huyplb
marked this pull request as ready for review
July 27, 2026 00:40
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.
Summary
Implements the review-fix plan across correctness, OOM bounds, CLI/provider parity, and algorithmic scale improvements — plus expanded cloud e2e coverage.
Phase 1 — Correctness / security
moveFkLocalpermutesreferencedColumnsin lockstep (or resyncs)-- review:instead ofREFERENCES t ()for mismatched FKsschemaApicache keys never embed password/connectionString; LRU-capped TTL cachePhase 2 — OOM / execution
pageCache(5 pages/statement) and keep only current page onruns.resultsschemaCacheTTL + max entries; clear on connection removeBoundedPoolCache(max + idle TTL + dispose)Phase 3 — CLI / providers
loadScopedTables(+ migrate snapshots) runnormalizeTableSchemasPhase 4 — Algorithms
-- review:noticesdialectSupportsFkbitmatrix (exported from@foxschema/coreand browser entry)E2E (cloud)
sql-editor-blueprint.test.ts: composite-FK explorer, blueprint modal, create+Insert SQL, Next/Prev pagingTest plan
cd apps/web && npx tsc --noEmit