Skip to main content

dbcls is a versatile client that supports various databases

Project description

DbCls

DbCls is a versatile client for multiple databases, enabling the editing and preservation of SQL queries in a file, and executing queries directly from the editor, thereby providing a convenient interface for data representation.

Briefly, this application combines the kaa editor and the visidata data visualization tool.

Editor

Data representation

Installation

pip install dbcls

Run

dbcls -H 127.0.0.1 -u user -p mypasswd -E mysql -d mydb mydb.sql

Hotkeys

  • Alt + r - Execute query under cursor or selected text
  • Alt + e - Show databases list
  • Alt + t - Show tables list
  • Ctrl + q - Quit
  • Ctrl + s - Save file

Options

-H --host

Host to connect to

-u --user

Username to connect as

-p --password

Password to use when connecting to server

-E --engine

Database engine, options are: mysql, postgresql, clickhouse

-d --database

Database to use

-P --port

Port number to use for connection (optional)

-e --encpass

Encrypted with ssh-crypt password

Bugs

See github issues: https://github.com/Sets88/dbcls/issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbcls-1.0.7.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

dbcls-1.0.7-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file dbcls-1.0.7.tar.gz.

File metadata

  • Download URL: dbcls-1.0.7.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.4

File hashes

Hashes for dbcls-1.0.7.tar.gz
Algorithm Hash digest
SHA256 34a74af8d5de19c3799438993369e852afce3f44c637b8f270a89f937153c49c
MD5 4eb3746e11f6d4272b06e3ddbcc63716
BLAKE2b-256 a476f8e1c9131e5416ff9eb389dd6a4772c08529e1916872284f3d5f96e49633

See more details on using hashes here.

File details

Details for the file dbcls-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: dbcls-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.4

File hashes

Hashes for dbcls-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d2dce16ddf4a50dced6a8120cb8678bb6dbe40618e9a875be2a2f8dc3de2a7b4
MD5 526fdfbac51afd3a379c2ddbbb28086a
BLAKE2b-256 2f57c14087d211445d264ab82606d50e9e3ff8967a0cb666371fac99ecf3fdf1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page