All Versions
16
Latest Version
Avg Release Cycle
108 days
Latest Release
1401 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.17.0 Changes
May 17, 2021๐ Changed
- Changed
Session::execute_batch
andSession::execute_batch_with_payloads
to take only a reference toBatch
rather than consuming it.
This is a breaking change; to update your code, simply change
batch
to&batch
in your argument list. If this causes an errorfuture cannot be sent between threads safely
because&Batch
isused across an await
, you need to introduce alet
before theawait
as follows:let fut = session.execute_batch(&batch); let result = fut.await?
- Changed
-
v0.16.0 Changes
March 10, 2021โ Added
- ๐ฆ Exposes separate setters for collection types on
Tuple
andUserType
. As such, the respectiveset_collection
andset_collection_by_name
on both types have been removed.set_collection
becomesset_set
andset_collection_by_name
becomesset_set_by_name
.- Added
Cluster::set_token_aware_routing_shuffle_replicas
.
- Added
- ๐
ConstDataType::new_user_type
has been added, to allow the creation of a user data type from an existing data type. - Added
Session::execute_with_payloads
andSession::execute_batch_with_payloads
to allow getting custom payloads from query and batch executions.
๐ฅ Breaking changes
- Extended the lifetime of a
CassResult
into aRow
. This is a breaking change, and may require reworking the code to satisfy the lifetime requirement that theCassResult
must live longer than theRow
. CassCollection::new
has been renamed toCassCollection::with_capacity
, andCassCollection::new
has been created, that no longer requires a capacity. This closely mirrors the API that the standard library collections expose, and that theitem_count
passed tonew
is merely a capacity hint for the purpose of optimization.time::Duration
has been replaced withstd::time::Duration
.
๐ Changed
- ๐ Change various functions to avoid the extra overhead using an intermediate CString object.
- ๐ Switched to using
parking_lot::Mutex
instead ofstd::sync::Mutex
forCassFuture
coordination. - Implemented
size_hint
onResultIterator
. - โฌ๏ธ Bumped versions of various dependencies.
๐ Fixed
CassResult::set_paging_state_token
was implemented incorrectly, namely, it did nothing, and has instead been replaced withCassResult::paging_state_token
.Statement::set_paging_state_token
has been changed to take a&[u8]
instead of a&str
, as a paging state token isn't necessarily utf8 encoded.
- ๐ฆ Exposes separate setters for collection types on
-
v0.15.1 Changes
June 02, 2020โ Added
- Conversion functions between
uuid::Uuid
and this library'sUuid
.
๐ Changed
- ๐
PreparedStatement
is now consideredSync
, and can be shared across threads.
๐ Fixed
- โ Remove unnecessary
build.rs
, making it easier to build the crate.
- Conversion functions between
-
v0.15.0 Changes
January 28, 2020๐ Changed
- โฌ๏ธ Drop support for futures 0.1, and implement
std::future
instead, allowing you to use this this library insideasync
functions, allowing anything that returns aCassFuture
to beawait
ed. This is a breaking change, and will require you to update your call-sites to either usestd::future
, or wrap them with a compatibility shim (e.g.,futures::compat
).
โ Added
- โ Adds a new method,
Cluster.connect_async
that returns a future, allowing you to connect to the cluster without blocking the event loop.
- โฌ๏ธ Drop support for futures 0.1, and implement
-
v0.14.1 Changes
November 07, 2019๐ Changed
- โ Add code example for SSL.
- โก๏ธ Updated error-chain to 0.12.1 to avoid
Error
deprecation warnings.
๐ Fixed
- โ Provide missing doc comment, fix unused doc comment warnings.
- Fix type signature on
set_load_balance_dc_aware
so it can be used.
-
v0.14.0 Changes
January 22, 2019โ Added
- ๐ฏ
Clone
,Copy
andPartialEq
traits inInet
- ๐ Fields name and value support for
UserTypeIterator
(support for UDT) - Extra bindings for
Row::get_by_name
andStatement::bind_by_name
๐ Changed
Debug
implementation forInet
now uses itsToString
implementation
๐ Fixed
Value::get_inet
which would always return a zeroedInet
- โฌ๏ธ Dropping futures early could cause a segfault when using the system allocator (in Rust 1.32.0 or later).
- ๐ฏ
-
v0.13.2 Changes
January 15, 2019- Avoid possible segfaults, by returning
None
where possible, otherwise panicking. In particular, a collection field set to NULL now returnsNone
rather than faulting. - Make
SchemaMeta::get_keyspace_by_name
work (fix string handling bug). - ๐ Allow using the
SetIterator
for lists and tuples. Previously these could not be enumerated at all! - ๐ For convenience, support
bind()
forList
s.
- Avoid possible segfaults, by returning
-
v0.13.1 Changes
January 08, 2019- ๐ Fix
stmt!()
not working ifStatement
was not imported.
- ๐ Fix
-
v0.13.0 Changes
December 04, 2018- Added new set_local_address function using the function Datastax added in cassandra-cpp-driver version 2.10.0
-
v0.12.0 Changes
December 04, 2018๐ Fixed
- No longer leaks all
CassResult
s. ### ๐ Changed - โก๏ธ Updated cassandra-cpp-sys to 0.12.
- โก๏ธ Updated cassandra-cpp-driver to 2.10.0
- ๐ cql protocol version 2 is no longer supported.
- ๐ฅ Breaking changes: The Cassandra WriteType UKNOWN is now called UNKNOWN There is a new Cassandra error code LIB_EXECUTION_PROFILE_INVALID There is a new Cassandra value type: DURATION
ResultIterator
now has a lifetime parameter. The underlyingCassResult
must live for at least as long as the iterator.CassResult
is no longerIntoIterator
; instead&CassResult
is. You must change code likefor row in result
tofor row in &result
and ensureresult
lives long enough.
- No longer leaks all