sqlectron / sqlectron-core

https://sqlectron.github.io/
MIT License
221 stars 69 forks source link

Supporting Cassandra 2.x #53

Closed derekchan closed 4 years ago

derekchan commented 6 years ago

The Cassandra driver we use works with both Cassandra 2.x and 3.x, however, the system schemas are different. To make Sqlectron work with Cassandra 2.x, we need to send different metadata queries to older servers.

The approach in this PR is to use the metadata provided by the driver whenever possible (already implemented in the schema parser from of the driver). Otherwise, we define two variants of the schema queries and send one corresponding to the server version.

MasterOdin commented 4 years ago

Thanks for this, even if it's 2 years later!

Closing this PR in-favor of #88 which contains your work with some slight tweaks and simplifications, as well as for testing against the full range of cassandra versions.