A database command line interface that is engine-agnostic.
Project description
dbcl - Database Command Line
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. 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dbcl-0.1.27.tar.gz
.
File metadata
- Download URL: dbcl-0.1.27.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1033-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3ba1f2552f9c0ecdcc891c7717bc9ef45339f5f40d0af0c6f873ee9a7f81b7 |
|
MD5 | 49cffbb4ccbd1af443788bf727455db5 |
|
BLAKE2b-256 | d552d1bb6976ffddf41527ca5f89615dd6dc08da64449a80bda71f6b607e2fb8 |
File details
Details for the file dbcl-0.1.27-py3-none-any.whl
.
File metadata
- Download URL: dbcl-0.1.27-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1033-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff3c561d6675eed4520164ac727f50ef4cc2ecaf3b198c2f6943663bc4eb9425 |
|
MD5 | 9e1cf71aa809a86a311919c3332a956d |
|
BLAKE2b-256 | ea4f7e1e248bd1f38b18bf3782dcaba359038a23bbc4bc4473b98859cedd1758 |