Repository navigation
fix(sqlite): read file URL parameters and name exports after the database file - #4390
Merged
Merged
Conversation
…B link's table in the file's catalog
…ile link's table unbound
…base the driver opened
datlechin
enabled auto-merge (squash)
November 21, 2026 08:07
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
sqlite://,duckdb://andbeancount://URLs: the path ends at the first?and is percent-decoded.name,table,view,statusColor,env,safeModeLeveland the filter parameters apply as they do on server URLs.file:name SQLite would read as a URI, is refused. Either would open a different file than the alert shows.nameis titled with the file name,shop, instead ofSQLite //path/to/shop.sqlite. Import from URL and Open Project Folder suggest the same name.?table=file link connects first, then opens the table in the database the driver opened on, recorded asConnectionSession.openedDatabase. A DuckDB session browsing an attached catalog no longer gets the table of that catalog.name,statusColorandenv. Beancount gets the three-slash file form instead of four.shop.csvfor/path/to/shop.sqlitewhen no single table is selected, in every format. The export tree titles that database rowshop.sqlite.=as an empty parameter.Test plan
Fail on main, pass here:
ConnectionURLParserTests: file URL query and name, decoded path, NUL andfile:refusal, suggested name, shared parameters.ConnectionURLFormatterTests: encoded path round trip, name and color on SQLite and Beancount URLs.DatabaseURLConnectionMatchTests: file link matches by path, DuckDB file field, remote-file rows skipped.TransientConnectionFactoryTests: link title and DuckDB file field.TabRouterTargetingTests: a file link's table database.ExportPreselectionTests,ExportTreeBuilderTests: export file name and tree row title.Updated on purpose:
ExportUITests.testExportingEveryTableAsStructureOnlyfound the database row by a label starting with/, the full path this PR replaces with the file name. It now looks the row up by the fixture's file name.Verified on CI: local builds were paused for a benchmark run on this Mac.
Fixes #4388
Fixes #4389