| Crates.io | pgdb_cli |
| lib.rs | pgdb_cli |
| version | 0.5.0 |
| created_at | 2021-06-15 11:01:10.580522+00 |
| updated_at | 2025-08-02 13:45:55.595582+00 |
| description | Command-line application to run a Postgres database |
| homepage | |
| repository | https://github.com/mbr/pgdb-rs |
| max_upload_size | |
| id | 410354 |
| size | 34,541 |
A command-line interface for creating temporary PostgreSQL databases for development and testing.
The easiest way to install is to do so straight from crates.io:
cargo install pgdb_cli
Start a temporary PostgreSQL instance:
pgdb
This will:
dev with password devdev owned by the userYou can use pgdb_cli with an existing PostgreSQL server by setting the PGDB_TESTS_URL environment variable:
PGDB_TESTS_URL=postgres://postgres:password@localhost:5432/postgres pgdb
When using an external database:
postgres:// scheme and include superuser credentialspgdb_cli will create the specified user and database on the external serverPostgreSQL binaries (postgres, initdb, psql) must be available in your PATH, pgdb_cli does not ship or install
PostgreSQL.