Is it possible to send a CQL script to a cassandra cluster through a datastax driver?

Simply put, I have a cql script that I would like to send to the cluster through cassandra Session, without having to go through cqlsh.

I looked at their APIs and I see nothing to take a CQL script or a way to parse a script into Statementthat could be passed to cassandra Session.

I suppose I could write something that the script itself parses, but it certainly should already exist somewhere in the datastax data code.

+4
source share
1 answer

script, script :

session.execute(cql_line);

cql_line - , CQL. script CQL , .

+2

Source: https://habr.com/ru/post/1619421/


All Articles