Skip to content

feat(core-import): import connections and saved SQL from DBX - #4147

Merged
datlechin merged 9 commits into
TableProApp:mainfrom
sedax90:feat/linux-import-dbx
Nov 11, 2026
Merged

datlechin merged 9 commits into
TableProApp:mainfrom
sedax90:feat/linux-import-dbx

Conversation

@sedax90

@sedax90 sedax90 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Import from Another App lists DBX (t8y2/dbx) on Linux. The core reads its dbx.db where Tauri keeps it: $XDG_DATA_HOME/com.dbx.app, Application Support on macOS, roaming AppData on Windows.
  • Connections: engine (MariaDB, TiDB, OceanBase and CockroachDB from DBX's driver profiles), host, port, user, database, colour (DBX's six swatches, or a clear custom hex), TLS and certificates, and the group path from DBX's sidebar layout.
  • SSH: every hop of DBX's transport layers, the last as the tunnel and the others as jump hosts; a hop on a shared tunnel profile takes the profile's settings; each hop signs in the way its auth_method names.
  • TLS: the stricter of ssl with its CA file and an sslmode driver parameter. PostgreSQL with no mode named imports as Prefer, as DBX connects; TLS set by any other parameter leaves the row unchecked.
  • DBX encrypts driver parameters and connection strings with its secrets. A network connection that has either keeps only what ssl and the CA file say, and starts unchecked with its TLS named as unread.
  • Saved SQL imports with the connection it runs on, in its folders; DBX's default query starts unchecked.
  • Nothing from the file runs or is carried: an init script, attached databases, a connection string, an SSH proxy command, a SOCKS or HTTP proxy layer, an HTTP tunnel, or a missing tunnel profile is named on the row as not kept.
  • Passwords stay in DBX's store, encrypted under a key in the system keyring; the review says so.
  • The SQLite reader Beekeeper and DBX share (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.
  • The DBeaver hue thresholds move to 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 whose connections is a view that never ends.
  • Unit tests for layer resolution, sign-in methods, driver profiles, colours, folder paths and the sidebar layout.

Screenshots

Import from Another App, with a DBX store of three connections on the computer

Light Dark
Before
After

@datlechin datlechin changed the title feat(core-import): import connections from DBX feat(core-import): import connections and saved SQL from DBX Nov 9, 2026
@datlechin
datlechin enabled auto-merge (squash) November 11, 2026 00:01
@datlechin
datlechin merged commit 85886b0 into TableProApp:main Nov 11, 2026
47 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants