项目作者: lmangani

项目描述 :
Cassandra cqlsh client in NodeJS
高级语言: JavaScript
项目地址: git://github.com/lmangani/cqlsh-node.git
创建时间: 2018-03-01T23:40:42Z
项目社区:https://github.com/lmangani/cqlsh-node

开源协议:MIT License

下载


cqlsh-node

Minimal Cassandra CQLSH for NodeJS

Provides cqlshjs command supporting basic CQLSH functionality

Install

  1. npm install -g cqlsh-node

Examples

Execute Shell
  1. # cqlshjs
  2. Connected to 127.0.0.1:9042.
  3. cqlsh> CREATE KEYSPACE examples WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1' }
Execute Query
  1. # cqlshjs -e "CREATE KEYSPACE examples WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1' }"

Options

  1. Usage: cqlshjs -e "SELECT ... limit 1" 127.0.0.1:9042
  2. Options:
  3. -V, --version output the version number
  4. -e, --execute <string> Execute the statement and quit
  5. -u, --username <string> Authenticate as user
  6. -p, --password <string> Authenticate using password
  7. -k, --keyspace <string> Authenticate to the given keyspace
  8. -q, --cqlversion <string> Specify a particular CQL version
  9. -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