Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 21 hours ago
JSON representation

Cassandra cqlsh client in NodeJS

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:9042

Options:

-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
```
##### Acknowledgement

Apache 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)