Repository navigation
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
I'd like to add MySQL Workbench as a source in Import connections… → Import from App.
Workbench keeps its connections in connections.xml in its user data folder (~/.mysql/workbench/ on Linux, ~/Library/Application Support/MySQL/Workbench/ on macOS, %APPDATA%\MySQL\Workbench\ on Windows). The importer finds that file automatically, with a manual path as fallback, and maps each connection to a MySQL connection: name, host, port, user, default schema and, for Standard TCP/IP over SSH connections, the SSH host, user and key file.
Passwords live in the OS keychain or in a separate Workbench vault, so they are out of scope: imported connections ask for the password when needed.
Motivation
MySQL Workbench is installed on many developer machines and is often the first MySQL client people used. Importing its connections makes trying Tabularis a one-minute task instead of retyping every server.
Example
A Workbench connection Staging (Standard TCP/IP over SSH, SSH host bastion.example.com, MySQL host 10.0.0.12:3306, user deploy, default schema shop) is shown in the preview as a MySQL connection with an SSH tunnel through bastion.example.com.
Acceptance criteria
- MySQL Workbench appears in the Import from App list and is detected when
connections.xmlexists. - A manual config path can be chosen when auto-detection fails.
- Name, host, port, user and default schema are imported.
- SSH over TCP/IP connections import their SSH host, port, user and key file.
- Unsupported connection methods are skipped with a warning instead of failing the whole import.
- Parser tests use a small fixture file.
Where to start
src-tauri/src/connection_import/mod.rs: theForeignAppImportertrait andall_importers(), where the new importer is registered.src-tauri/src/connection_import/dbeaver.rsandtableplus.rs: complete importers to copy the structure from.src-tauri/src/connection_import/types.rs(ImportedConnection,ImportedSsh,ImportedSsl) anddriver_map.rs(mapping external database types to Tabularis drivers).src-tauri/src/connection_import/importer_tests.rs: fixture-based tests.- The import modal (
packages/web-ui/src/components/modals/ImportFromAppModal.tsx) lists sources from the backend, so it should not need changes beyond an optional icon. - The file format described above is a summary: please check key names and value types against a real export from a recent version of the app, and build the test fixture from it (with fake hosts and users).
Contributor notes
- Follow the repo rules in
.rules/(Rust, testing). - Keep the importer in
src-tauri/src/connection_import/; it must not depend on Tauri. The import modal and the desktop/web commands already list importers fromall_importers(), so no transport code should be needed. - Add parser tests with a small fixture next to the existing ones in
src-tauri/src/connection_import/importer_tests.rs. Never commit real hosts or credentials. - Run
cargo test connection_importandcargo check --no-default-featuresfromsrc-tauri/. - Questions? Ask here or on Discord.
Activity