A SQL IDE in your terminal
Project description
sqlcli
A SQL IDE in your terminal
Using
Python package: to add and install this package as a dependency of your project, run poetry add sqlcli
.
Python CLI: to view this app's CLI commands once it's installed, run sqlcli --help
.
Contributing
Prerequisites
1. Set up Git to use SSH
- Generate an SSH key and add the SSH key to your GitHub account.
- Configure SSH to automatically load your SSH keys:
cat << EOF >> ~/.ssh/config Host * AddKeysToAgent yes IgnoreUnknown UseKeychain UseKeychain yes EOF
2. Install Docker
- Install Docker Desktop.
- Enable Use Docker Compose V2 in Docker Desktop's preferences window.
- Linux only:
- Configure Docker to use the BuildKit build system. On macOS and Windows, BuildKit is enabled by default in Docker Desktop.
- Export your user's user id and group id so that files created in the Dev Container are owned by your user:
cat << EOF >> ~/.bashrc export UID=$(id --user) export GID=$(id --group) EOF
3. Install VS Code or PyCharm
- Install VS Code and VS Code's Dev Containers extension. Alternatively, install PyCharm.
- Optional: install a Nerd Font such as FiraCode Nerd Font and configure VS Code or configure PyCharm to use it.
Development environments
The following development environments are supported:
- ⭐️ GitHub Codespaces: click on Code and select Create codespace to start a Dev Container with GitHub Codespaces.
- ⭐️ Dev Container (with container volume): click on Open in Dev Containers to clone this repository in a container volume and create a Dev Container with VS Code.
- Dev Container: clone this repository, open it with VS Code, and run Ctrl/⌘ + ⇧ + P → Dev Containers: Reopen in Container.
- PyCharm: clone this repository, open it with PyCharm, and configure Docker Compose as a remote interpreter with the
dev
service. - Terminal: clone this repository, open it with your terminal, and run
docker compose up --detach dev
to start a Dev Container in the background, and then rundocker compose exec dev zsh
to open a shell prompt in the Dev Container.
Developing
- This project follows the Conventional Commits standard to automate Semantic Versioning and Keep A Changelog with Commitizen.
- Run
poe
from within the development environment to print a list of Poe the Poet tasks available to run on this project. - Run
poetry add {package}
from within the development environment to install a run time dependency and add it topyproject.toml
andpoetry.lock
. Add--group test
or--group dev
to install a CI or development dependency, respectively. - Run
poetry update
from within the development environment to upgrade all dependencies to the latest versions allowed bypyproject.toml
. - Run
cz bump
to bump the package's version, update theCHANGELOG.md
, and create a git tag.
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
sqlcli_sh-0.1.0.tar.gz
(20.4 kB
view details)
Built Distribution
sqlcli_sh-0.1.0-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file sqlcli_sh-0.1.0.tar.gz
.
File metadata
- Download URL: sqlcli_sh-0.1.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.6 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca3233bcec84919f0c89293123c81d3edbc7977e8e2189272bd376672e78ee1 |
|
MD5 | 31195e4f983d739b4e89fa4b62aecd89 |
|
BLAKE2b-256 | 90ecfa6a3cdae480e789cfe7be88ea667a609eca7de16e27838f899a978acbe1 |
File details
Details for the file sqlcli_sh-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: sqlcli_sh-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.6 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f6be34d750d8d4ad70a9a7dd79e6dc66655f23dc3da36b18564e435b309dc3 |
|
MD5 | 35568d9fd55c459fc1c8372af26a1fa1 |
|
BLAKE2b-256 | ec349951144535edb4e9dddc6ab93ffb5a354140a30b1d66078e5f413b4f4607 |