sqlectron / sqlectron-core

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

Add support for Cassandra 2.1 and fix tests for 3.10+ #88

Closed MasterOdin closed 4 years ago

MasterOdin commented 4 years ago

Supersedes work from #53 to also get this tested on cassandra 3.10+, while fixing the merge conflicts, and simplifying the version select.

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

Merged manually in: c801131813cf0c7c7dd3736ecaf65eb13baf1abf 4073f6c9e4b44fad999fea4777e343ef14a9e452

derekchan commented 3 years ago

Thank you!