databudgie-2.7.5
توضیحات
Ergonomic and flexible tool for database backup and restore
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | databudgie-2.7.5 |
| نام | databudgie |
| نسخه کتابخانه | 2.7.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrew Sosa |
| ایمیل نویسنده | andrewso@known.is |
| آدرس صفحه اصلی | https://github.com/schireson/databudgie |
| آدرس اینترنتی | https://pypi.org/project/databudgie/ |
| مجوز | MIT |
# Databudgie

[](https://coveralls.io/github/schireson/databudgie?branch=main)
[](https://databudgie.readthedocs.io)

Databudgie is a CLI & library for database performing targeted backup and restore
of database tables or arbitrary queries against database tables.
# Usage
A minimal config file might look like:
```yaml
# config.databudgie.yml
backup:
url: postgresql://postgres:postgres@localhost:5432/postgres
tables:
- name: public.product
query: "select * from {table} where store_id > 4"
location: s3://my-s3-bucket/databudgie/public.product
restore:
url: postgresql://postgres:postgres@localhost:5432/postgres
tables:
- name: public.product
location: s3://my-s3-bucket/databudgie/public.product
```
With that config in place, backing up the defined tables (using the specified config)
is as simple as `databudgie backup`; and restore `databudgie restore`.
## Installation
```bash
pip install databudgie
```
نیازمندی
| مقدار | نام |
|---|---|
| - | rich |
| - | configly[yaml] |
| >=1.3 | sqlalchemy |
| >=0.2.7 | strapp[click,sqlalchemy] |
| >=7.0.0 | click |
| >=3.10.0) | typing-extensions |
| ython_versio | importlib-metadata; |
| xtr | boto3; |
| xtr | sentry-sdk; |
| >=2.7) | psycopg2 |
| >=2.7) | psycopg2-binary |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4 | Python |
نحوه نصب
نصب پکیج whl databudgie-2.7.5:
pip install databudgie-2.7.5.whl
نصب پکیج tar.gz databudgie-2.7.5:
pip install databudgie-2.7.5.tar.gz