Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Cassandra CLI on node.JS project?

I have installed Cassandra nodeJS module using

$ npm install cassandra-driver

My project has the following structure: project structure

Given this structure how can I use terminal and Cassandra 'cqlsh' to perform tasks connected with database management?

like image 707
user3551334 Avatar asked Apr 09 '26 14:04

user3551334


1 Answers

The node cassandra-driver is a client driver meant for interacting with Cassandra programmatically. It does not provide cqlsh.

cqlsh is the command line utility that gets installed with Cassandra. To use it you can visit a server where it is installed, or get a copy locally by downloading and unpacking a release tarball (get a version matching the server to which you intend to connect).

Alternatively, there are projects around that provide ways of getting cqlsh without the rest (although these are maybe not widely supported by the community).

like image 89
Adam Holmberg Avatar answered Apr 12 '26 07:04

Adam Holmberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!