Repository navigation
fix: SQLite foreign keys, mock version, import deps - #927
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Adds sqlite_get_foreign_keys, built on PRAGMA foreign_key_list, and routes the SQLite data source's getForeignKeys to it instead of an empty list. It returns MySQL's ForeignKeyInfo shape. SQLite keeps no constraint names, so each key is named fk_<table>_<id>; a key that names no parent columns resolves to the parent's primary key. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The lint check was off because handlePickFile was declared before the parseCsvContent and loadTables callbacks it calls, so listing them threw in the temporal dead zone. Declare it after them and list its real deps. Closes #924 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Merged
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.
The leftovers from the UX review. The
implementer-rustlane did the code, and I added one docs commit.Closes #924
Changes
package.json, not a hardcoded 1.3.0. Both the app version and the updater's current version use it.sqlite_get_foreign_keys, built onpragma_foreign_key_list(?1)with the table name as a bound parameter. It returns the sameForeignKeyInfothat MySQL'sget_foreign_keysreturns.fk_<table>_<id>.tauri-api.tsanddataSourceFor, has a mock handler (the SQLite fixture gains anote_tagstable with a foreign key), and is listed inARCHITECTURE.md§5.handlePickFileno longer turns off the hook-dependency lint check.Closes #1, #2as closing only Fix: sidebar schema selection, explain tab, autocomplete, run/explain flow #1.Tests
tauri-api.ts, the mock data, and the mock version.cargo fmt,clippy -D warnings,cargo test -p mas-sqliteand-p sqlpilotpass.npm run test:unitpasses (3731 tests). The ImportDialog browser test passes. Lint shows 0 errors and no new warnings. type-check, dprint andcheck-documented-commands.share clean.Generated by Claude Code