dbcl-0.1.9
توضیحات
A database command line interface that is engine-agnostic.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dbcl-0.1.9 |
| نام | dbcl |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kris Steinhoff |
| ایمیل نویسنده | ksteinhoff@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dbcl/ |
| مجوز | MIT |
# dbcl - Database Command Line
[](https://travis-ci.org/ksofa2/dbcl)
[](https://codeclimate.com/github/ksofa2/dbcl/maintainability)
An engine-agnostic database command line interface.
## Installation
Use `pip` to install the dbcl tool:
```
pip install dbcl
```
Also install the necessary packages for your database, for example: `cx_Oracle`, `pg8000` or `PyMySQL`.
## Database connection
Database connections are specified using [SQLAlchemy database URLs](http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls). The database URL can be given as an argument to the `dbcl` command:
```
dbcl sqlite:///database.db
```
If the URL isn't given as an argument, a prompt will ask for the URL to use for the connection:
```
$ dbcl
Connect to [sqlite:///database.db]:
```
If the DATABASE_URL environmental variable is set, that value will be the default for the database prompt:
```
$ export DATABASE_URL=sqlite:///database.db
$ dbcl
Connect to [sqlite:///database.db]:
```
Example of a connection to a PostgreSQL database using wht `pg8000` package:
```
dbcl postgresql+pg8000://username:password@127.0.0.1:5432/dbname
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.4.46,<2.0.0 | SQLAlchemy |
| >=2.0.10,<3.0.0 | prompt-toolkit |
| >=2.2.0,<3.0.0 | pygments |
| >=3.1.0,<4.0.0 | terminaltables |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl dbcl-0.1.9:
pip install dbcl-0.1.9.whl
نصب پکیج tar.gz dbcl-0.1.9:
pip install dbcl-0.1.9.tar.gz