jouet db
- Usage:
jouet db <SUBCOMMAND>
Read a database's schema, or run a read-only query, in SQLite or Postgres
The database is --url, else DATABASE_URL, else DATABASE_URL from the project's fnox config (fnox get, read inside jouet and never printed). A .env file is never read. A SQLite database is a file path, sqlite: or file:; Postgres is a postgres:// URL or a key=value string. A password is shown as ***.
Only local databases are opened: a Postgres host other than localhost, a loopback address or a Unix socket is refused (exit 4) without --remote, so an agent does not read production by accident.
Flags
-h --help— Print help