Skip to content

lmangani/cqlsh-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cqlsh-node

Minimal 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 <string>         Execute the statement and quit
    -u, --username <string>        Authenticate as user
    -p, --password <string>        Authenticate using password
    -k, --keyspace <string>        Authenticate to the given keyspace
    -q, --cqlversion <string>      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

About

Cassandra cqlsh client in NodeJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published