0
votes


Is there possibility to load/execute queries from a file using Cassandra Datastax driver? I could not find any class/method to do that.
As I know the driver can create Batch statements, so I need only the mechanism which can load .cql file and create BatchStatement object.
Thanks in advance.

1

1 Answers

2
votes

You didn't mention which language you are using, but assuming it is Java, currently this is not possible.

There is a Java driver open ticket that requests that feature but it is currently not scheduled. A server-side ticket has also been logged but is currently delayed.

Your best option IMHO would be cassandra-loader.