Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lffg-labs/rm-pg-dbs
š Drop PostgreSQL databasesāin bulk, as you select.
https://github.com/lffg-labs/rm-pg-dbs
cli drop-database postgresql-manager
Last synced: about 2 hours ago
JSON representation
š Drop PostgreSQL databasesāin bulk, as you select.
- Host: GitHub
- URL: https://github.com/lffg-labs/rm-pg-dbs
- Owner: lffg-labs
- License: mit
- Created: 2020-01-08T05:14:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T22:14:22.000Z (almost 3 years ago)
- Last Synced: 2024-12-21T06:18:10.820Z (3 days ago)
- Topics: cli, drop-database, postgresql-manager
- Language: JavaScript
- Homepage:
- Size: 271 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# š `rm-pg-dbs`
[![NPM](https://img.shields.io/npm/v/@lffg-scripts/rm-pg-dbs.svg?logo=npm)](https://www.npmjs.com/package/@lffg-scripts/rm-pg-dbs)
Drop PostgreSQL databasesāin bulk, **as you select**.
[Watch an introduction video here.](https://www.youtube.com/watch?v=9qz3EuNMDfU)```
yarn global add @lffg-scripts/rm-pg-dbs
```And run it via:
```
rm-pg-dbs
```Be default, this CLI will connect to the `localhost:5432` PostgreSQL database as `postgres` user with `postgres` password. The default database which will be connected is `postgres`.
You can override the default connection options with the following environment variables:
- `PGHOST`;
- `PGPORT`;
- `PGUSER`;
- `PGPASSWORD`;
- `PGDATABASE`.You can set the `ALLOW_ANY_DROP` environment variable to `true` to enable the deletion of the `postgres`, ``, `template1` and `template0` databases, which are filtered out of the selection list by default. You should not do this, though.
---
License MIT.
Copyright Ā© [Luiz Felipe GonƧalves](https://luizfelipe.dev).