Repository navigation
v1.2.0
What's Changed
- update: scylla-driver version 1.10, Rust 2024 edition, fixes and tests by @GoranBrkuljan in #87
Driver and Rust
- ScyllaDB Rust driver 1.10 (was 1.4) and the Rust 2024 edition. Rust 1.94 or newer is now required, because the driver requires it.
- All other dependencies are on their latest versions, including
syn3 anddarling0.24. The code generated by the macros is unchanged.
Varint
Varint was an alias of i64 and could not be used with a varint column. It is now an integer of any size:
use charybdis::types::Varint;
let small = Varint::from(42);
let big: Varint = "123456789012345678901234567890".parse()?;Like Decimal, it is written to JSON as a string and read from a string or a whole number. The underlying num_bigint::BigInt is available as .0.
Fixes
migrate: aVarcharcolumn was seen as a changed type on every run. With--drop-and-replacethe column was dropped and created again, losing its data; without it the migration panicked.migrate:CLUSTERING ORDER BYorCOMPACT STORAGEas the last entry oftable_optionsproduced an invalidALTER TABLEstatement on every run after the first.CharybdisError::source()returnedNoneforBatchErrorandTypeCheckError.
Upgrade notes
- Rust 1.94+ is required.
Varintis no longer ani64.- TLS: since driver 1.5, the certificate of a node has to list the node's IP address in its SAN, otherwise the connection is rejected. This applies to
migrate --caand to sessions you build yourself. - Contact points: since driver 1.6, every node is expected to listen on the port of the contact point that was used. If your nodes are published on different host ports (for example docker with
9042,9043and9044on localhost), list a single contact point and let the driver discover the rest. Otherwise most sessions fail withConnectionRefused.
Tests
Integration tests went from 10 to 30, and there are now 67 unit tests that run without a database.
Full Changelog: v1.1.0...v1.2.0