Skip to content

Tauri desktop ​

The desktop is a Tauri 2 shell around a React UI. It is a thin adapter: it resolves the shared directory, calls the core, and maps errors to safe messages.

Connection commands ​

CommandInputOutput
connections_list—DbConnection[]
connections_createconnection, password?DbConnection
connections_updateconnection, password?, expectedRevision?—
connections_deleteid, expectedRevision?boolean
connections_importrecordsImportReport
connections_migrate_local_storagerecordsImportReport
connections_migration_status—MigrationStatus

Database commands ​

CommandPurpose
test_connTest a connection
list_databases_cmdList databases
list_tables_cmdList tables in a database
run_query_cmdRun SQL and return a result grid
backup, restore, copy_dbDump and copy operations (pages not routed)

Credential commands ​

CommandPurpose
store_passwordStore a password in the keyring
get_passwordRead a password from the keyring
delete_passwordDelete a password from the keyring

The connection commands use the core's coordinated mutations, so the credential and the metadata are written under one store lock. The older credential commands remain for compatibility.

Error mapping ​

The adapter never forwards a raw core message. It maps the error code to a safe message:

CodeMessage
ConflictThe connection list changed in another window. Reload and try again.
BusyThe connection store is busy. Try again in a moment.
NotFoundThat connection no longer exists.
ConnectionThe operating system keyring is unavailable for this connection.
UnsupportedThis connection store version is not supported by this build.
OperationThe connection store could not be updated.

This keeps filesystem paths and credentials out of the UI.

Released under the MIT License.