Bringing together the Apache Cassandra experts from the community and DataStax.
Want to learn? Have a question? Want to share your expertise? You are in the right place!
Not sure where to begin? Getting Started
I'm guessing you've seen the nodejs driver docs here: https://github.com/datastax/nodejs-driver/tree/master/doc/getting-started is there something in particular you're looking for?
This one I saw. But there is no information about how to define a schema.
I can see only connection and query execution there
Ok so the driver should be compatible with normal CQL3 commands as per FAQ docs here says:
https://github.com/datastax/nodejs-driver/tree/master/doc/faq
>Which versions of CQL does the driver support?
>It supports CQL version 3.
So you should be able to use a normal create table statement. Note one word of caution when doing schema changes programmatically - dont throw those in like you would normal writes. They need to be done less frequently and with more care.
4 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2021 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use