Running DESCRIBE TABLE command using cassandra-driver

273 views
Skip to first unread message

Bhavesh Joshi

unread,
Dec 28, 2017, 12:28:28 PM12/28/17
to DataStax Node.js Driver for Apache Cassandra Mailing List
Hi,

I am using cassandra-driver for node, I need to get the basic structure of the table(column name and type ) to create metadata for my use case, it seems we can't run DESCRIBE TABLE command from cassandra driver , is there any way to run it or any work around ?

Thanks,
Bhavesh 

Andy Tolbert

unread,
Dec 29, 2017, 3:25:52 PM12/29/17
to nodejs-dr...@lists.datastax.com
Hi Bhavesh,

Commands that work in CQLSH, such as DESCRIBE and USE are not valid CQL, they are CQLSH exclusive commands.

There is however an API for the nodejs driver that allows you to access schema metadata, see the Cluster and Schema Metadata documentation for details on this.

Thanks,
Andy



--
You received this message because you are subscribed to the Google Groups "DataStax Node.js Driver for Apache Cassandra Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs-driver-user+unsub...@lists.datastax.com.

Bhavesh Joshi

unread,
Jan 3, 2018, 12:09:48 PM1/3/18
to DataStax Node.js Driver for Apache Cassandra Mailing List
Thanks Andy
Reply all
Reply to author
Forward
0 new messages