Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmangani/cqlsh-node
Cassandra cqlsh client in NodeJS
https://github.com/lmangani/cqlsh-node
cassandra cli cql cqlsh elassandra nodejs
Last synced: about 1 month ago
JSON representation
Cassandra cqlsh client in NodeJS
- Host: GitHub
- URL: https://github.com/lmangani/cqlsh-node
- Owner: lmangani
- License: mit
- Created: 2018-03-01T23:40:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T21:19:59.000Z (almost 7 years ago)
- Last Synced: 2024-10-05T13:22:27.910Z (3 months ago)
- Topics: cassandra, cli, cql, cqlsh, elassandra, nodejs
- Language: JavaScript
- Homepage: http://qxip.net
- Size: 24.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cqlsh-node
##### Minimal [Cassandra](https://github.com/apache/cassandra) CQLSH for NodeJS
Provides `cqlshjs` command supporting basic CQLSH functionality### Install
```
npm install -g cqlsh-node
```#### Examples
##### Execute Shell
```
# cqlshjs
Connected to 127.0.0.1:9042.
cqlsh> CREATE KEYSPACE examples WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1' }
```##### Execute Query
```
# cqlshjs -e "CREATE KEYSPACE examples WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1' }"
```### Options
```
Usage: cqlshjs -e "SELECT ... limit 1" 127.0.0.1:9042Options:
-V, --version output the version number
-e, --execute Execute the statement and quit
-u, --username Authenticate as user
-p, --password Authenticate using password
-k, --keyspace Authenticate to the given keyspace
-q, --cqlversion Specify a particular CQL version
-h, --help output usage information
```
##### AcknowledgementApache Cassandra, CQL and Cassandra are trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
###### This project is Sponsored by [QXIP BV](http://qxip.net)