cassandra-rs
cassandra-rs copied to clipboard
Cassandra (CQL) driver for Rust, using the DataStax C/C++ driver under the covers.
re-opening #96 Internally, we've (discord) wrapped `cassandra-rs` to basically implicitly associate a given Statement, PreparedStatement & Batch with a given Session. This PR tries to improve upon that, by building...
If a ResultIterator is dropped while a Row it returned is still alive then we hit undefined behavior. I have seen this exposed as garbage data and segfaults. Specifically [cass_iterator_free](https://docs.datastax.com/en/developer/cpp-driver/2.16/api/struct.CassIterator/#function-cass_iterator_free)...
I have a project that uses this crate but it fails because the linker cannot find 'cryoto.lib' I have installed correctly every dependencies. any idea ?
`error_chain` was great, but it's a bit outdated now. We should move to `anyhow`/`thiserror` or other modern error approach.
I can't find a way to get the number of parameters on a `PreparedStatement`. Also there is no way to get the actual type of the parameter by name, because...
I noticed the Decimal type related functionality of the driver is not exported in this crate. For example the `bind_decimal` method is commented out: https://github.com/Metaswitch/cassandra-rs/blob/master/src/cassandra/statement.rs#L682 What is the reason behind...
Hi, It looks like inserting data using `bind_by_name` was broken by the series of patch labeled as CString conversion optimizations. When inserting data, it looks the length of the string...
#91 was a "hackfix", but I realized that we indeed do have a `CassCollection` trait, and we can most definitely use it here, insofar as we can revive `set_collection(&mut self,...
We should go through the code and identify all TODO / FIXME / commented-out code issues. Where possible we should resolve them, or at very least track them with GitHub...
Currently, the underlying C++ library defaults everything to a consistency level of ONE. (https://docs.datastax.com/en/developer/cpp-driver/2.15/api/struct.CassStatement/#function-cass_statement_set_consistency) It doesn't allow you to specify a more sensible default. Since we're wrapping this library, we...