list
Show what exists: databases on the connected server, tables in one schema, or the connections saved in your config. Each run targets exactly one of the three.
PostgreSQL is the only implemented driver today, so the server-facing branches need a working connection.
Usage
dbmux list [flags]Options
| Option | Alias | Type | Description |
|---|---|---|---|
--databases | db | boolean | List databases on the server |
--tables | -t | boolean | List tables in the selected schema |
--connections | -c | boolean | List saved connections, names only |
--connection | -n | string | Named saved connection to use |
--schema | string | Schema to list tables from, defaults to public | |
--database | -d | string | Inspect another database on the same server |
What each flag prints
The three target flags are mutually exclusive. With no target flag at all, dbmux exits with an error telling you to pick one.
--connections reads your local config and prints connection names only.
--databases asks the connected server and prints a table with Name,
Owner, Encoding, and Size columns.
--tables lists the tables of one schema, defaulting to public. Combine
it with --schema to list a different one.
Examples
List every database on the server:
dbmux list --databasesList tables in the public schema:
dbmux list --tables --schema publicList saved connection names:
dbmux list --connectionsList databases through a named connection:
dbmux list --databases -n productionPoint the listing at another database:
dbmux list --databases -d other_db