cqlsh is a Python-based command-line client for running CQL commands on a scylla cluster.
Project description
scylla-cqlsh
Command line tool to connect to scylladb (or Apache Cassandra)
A fork of the cqlsh tool from https://github.com/apache/cassandra
Quickstart
pip install scylla-cqlsh
cqlsh ${SCYLLA_HOST} -e 'SELECT * FROM system.local'
# or just using it interactively
cqlsh ${SCYLLA_HOST}
# or using it with scylla-cloud
cqlsh --cloudconf [path to connection bundle downloaded]
Contributing
Feel free to open a PR/issues with suggestion and improvement Try covering you suggested change with a test, and the instruction for running tests are below
Testing
Dependent
- python 2.7/3.x (recommend virtualenv)
- minimum java8
pip install -e .
pip install -r pylib/requirements.txt
# run scylla with docker
docker run -d scylladb/scylla:latest --cluster-name test
export DOCKER_ID=$(docker run -d scylladb/scylla:latest --cluster-name test)
export CQL_TEST_HOST=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' ${DOCKER_ID})
while ! nc -z ${CQL_TEST_HOST} 9042; do
sleep 0.1 # wait for 1/10 of the second before check again
done
# run scylla with CCM
ccm create cqlsh_cluster -n 1 --scylla --version unstable/master:latest
ccm start
pytest
Creation of the repo
A reference on how this we forked out of cassandra repo So we can repeat the process if we want to bring change back it
git clone -b trunk --single-branch git@github.com:apache/cassandra.git
sudo apt-get install git-filter-repo
cd cassandra
git filter-repo --path bin/cqlsh --path bin/cqlsh.py --path pylib/
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
scylla-cqlsh-6.0.4.tar.gz
(675.8 kB
view details)
File details
Details for the file scylla-cqlsh-6.0.4.tar.gz
.
File metadata
- Download URL: scylla-cqlsh-6.0.4.tar.gz
- Upload date:
- Size: 675.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00717c5eb4c0e43886e8e1a5b8e4d5c1a3a48da203a9701e05d7b1b893ce9f4 |
|
MD5 | 39a0e4d8e08c53ea8e51568bbb3f9e21 |
|
BLAKE2b-256 | a4ca160dd324cfbd536797d121c011ddfd5e521868ec137ea7777a23f2f36fae |