incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Greenawalt <joe.greenaw...@gmail.com>
Subject Re: CQL3 Driver, DESCRIBE
Date Mon, 10 Jun 2013 11:05:34 GMT
Yep, *MetaData stuff is what I was looking for thanks for the pointer.

Joe


On Sun, Jun 9, 2013 at 8:00 PM, Sylvain Lebresne <sylvain@datastax.com>wrote:

> DESCRIBE is not a CQL3 query but a cqlsh specific command, so it won't
> work outside of cqlsh. However, at least if you are using the datastax java
> driver (I don't know for the .Net one but it's probably true there too) you
> can just get the equivalent through the
> Cluster.getMetadadata().getKeyspace(<keyspace_name>) method.
>
> --
> Sylvain
>
>
> On Sun, Jun 9, 2013 at 3:49 PM, Joe Greenawalt <joe.greenawalt@gmail.com>wrote:
>
>> Hi, I was playing around with the datastax driver today, and I wanted to
>> call "DESCRIBE TABLE ....;".  But got a syntax error: line 1:0 no viable
>> alternative at input 'describe'.  Is that functionality just not
>> implemented in the 1.0 driver?
>>
>> If that's true:
>> Does anyone know if its planned?
>> Is there another way to get a description of the table?
>>
>> If it's not true, does anyone know where I could be doing something wrong?
>> I have a good connection, and I'm simply running
>> session.execute("DESCRIBE TABLE {keyspaceName}.{tableName};");
>>
>> Thanks,
>> Joe
>>
>>
>

Mime
View raw message