Skip to content

Conversation

ericraio
Copy link
Contributor

Motivation:

Identified from issue #59, the swift-cassandra-client didn't expose serial consistency configuration needed for Lightweight Transactions, despite the C++ driver supporting it via cass_cluster_set_serial_consistency.

Modifications:

  • Added serialConsistency field to Configuration struct
  • Added setSerialConsistency method to Cluster class
  • Applied serial consistency in makeCluster method
  • Added testSerialConsistency unit test

Result:

Users can now set configuration.serialConsistency = .serial or .localSerial for proper LWT consistency guarantees.

Motivation:

The swift-cassandra-client didn't expose serial consistency configuration
needed for Lightweight Transactions, despite the C++ driver supporting it
via cass_cluster_set_serial_consistency.

Modifications:

- Added serialConsistency field to Configuration struct
- Added setSerialConsistency method to Cluster class
- Applied serial consistency in makeCluster method
- Added testSerialConsistency unit test

Result:

Users can now set configuration.serialConsistency = .serial or .localSerial
for proper LWT consistency guarantees.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant