miudb Go Preview Install¶
The Go preview binary is named miudb.
Release Install¶
Alternative:
Make sure your Go bin directory is on PATH when using go install:
Verify:
Native Config¶
By default miudb reads and writes native files under:
The connection file stores metadata. Sensitive fields are classified before write and are stored through the selected secret backend.
Add a SQLite connection:
miudb connections add \
--name agent-deck \
--db-type sqlite \
--path /Users/vanducng/.agent-deck/profiles/default/state.db \
--output json
Add a PostgreSQL connection with Keychain/keyring-backed password storage:
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 json
List and test:
Run a bounded query:
Run a saved-connection health matrix:
Store Options¶
miudb --config-dir ~/.config/miu/db connections list --output json
miudb --connections-file ./connections.json connections list --output json
miudb --secret-source keyring,file,gopass connections test app-dev --output json
New connection secret stores:
keyring: OS Keychain/keyring service namedmiudbby default.file: local credential file with mode0600.inline: leave the value inconnections.json.none: discard the supplied value.
For migrated configs, miudb reads credentials-export.json from the same
directory when credentials.json is absent.
Local Checkout¶
go test ./...
go build -buildvcs=false -o ./.miu-db/miudb ./cmd/miudb
./.miu-db/miudb version --output json
-buildvcs=false avoids VCS stamping failures in git worktree layouts.