Repository navigation
feat(core-import): import connections and saved SQL from DBX - #4147
Merged
Merged
Conversation
… DBX stores them, and run no SQL its file holds
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
dbx.dbwhere Tauri keeps it:$XDG_DATA_HOME/com.dbx.app, Application Support on macOS, roaming AppData on Windows.auth_methodnames.sslwith its CA file and ansslmodedriver parameter. PostgreSQL with no mode named imports as Prefer, as DBX connects; TLS set by any other parameter leaves the row unchecked.ssland the CA file say, and starts unchecked with its TLS named as unread.apps/sqlite.rs) opens another app's file with views, triggers and untrusted schema SQL off, so a view named like a table it reads cannot run on open.apps/mod.rs, shared with DBX's custom colours.Test plan
tests/fixtures/dbx/dbx.sql: DBX's own CREATE TABLE statements and rows in the JSON shape its serde types write, from t8y2/dbx at 39a77b5 (persistence/storage.rs,models/connection.rs,ConnectionDialog.vue,ai/mcp_policy.rs).tests/dbx.rs: tunnel chain and profile, certificates, colours, groups, file engines, a connection saved before transport layers, rows DBX cannot read, saved SQL, passwords, every location, what is not kept never reaching the import, TLS from parameters, parameters and connection strings DBX encrypts, and a store whoseconnectionsis a view that never ends.Screenshots
Import from Another App, with a DBX store of three connections on the computer