flush-1.0
توضیحات
Archive PostgreSQL tables to S3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flush-1.0 |
| نام | flush |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bryan Collazo |
| ایمیل نویسنده | bcollazo2010@gmail.com |
| آدرس صفحه اصلی | http://github.com/bcollazo/flush |
| آدرس اینترنتی | https://pypi.org/project/flush/ |
| مجوز | MIT |
# flush
Archive PostgreSQL tables to S3.
CLI tool that flushes (exports and deletes) all database rows of a PostgreSQL table into a CSV in a specified S3 bucket. Useful for archiving data and saving money in small infrastructure environments.
## Usage
Ensure you are using correct AWS credentials (as if you were using BOTO: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html#configuration).
Then:
```
pip install flush
flush postgres://localhost:5432/mydatabase tablename mybucket --truncate
```
نحوه نصب
نصب پکیج whl flush-1.0:
pip install flush-1.0.whl
نصب پکیج tar.gz flush-1.0:
pip install flush-1.0.tar.gz