Daily driver
miu-db uses a native Go store by default:
~/.config/miu/db/connections.json~/.config/miu/db/credentials.jsonNew connections should be created through miudb connections add so sensitive
fields are classified before write. The default secret store is the miudb OS
Keychain/keyring service. Migrated configs can keep credentials-export.json
in the same directory; miudb reads it when credentials.json is absent.
Baseline
Section titled “Baseline”miudb connections list --output jsonmiudb connections smoke --timeout 20s --concurrency 4 --output jsonAdd Connections
Section titled “Add Connections”SQLite:
miudb connections add \ --name local-app \ --db-type sqlite \ --path /path/to/app.db \ --output jsonPostgreSQL/MySQL style TCP connection:
miudb connections add \ --name app-dev \ --db-type postgresql \ --host localhost \ --port 5432 \ --database app \ --username app \ --password "$APP_DB_PASSWORD" \ --secret-store keyring \ --output jsonSSH tunnel-backed connection:
miudb connections add \ --name app-prod \ --db-type mysql \ --host prod-rds.internal \ --port 3306 \ --database app \ --username app \ --password "$APP_DB_PASSWORD" \ --tunnel \ --ssh-config-alias bastion \ --secret-store keyring \ --output jsonImport / Share
Section titled “Import / Share”Share a connections JSON file and import it on the target machine. Import merges
by name, overwrites matching entries, and backs up the existing
connections.json to connections.json.bak-<timestamp> before writing.
miudb connections import ./shared-connections.json --dry-run --output jsonmiudb connections import ./shared-connections.json --output jsonmiudb query run \ --connection app-dev \ --sql "select 1 as one" \ --limit 100 \ --output json