Johnny Miller created CASSGO-103:
------------------------------------
Summary: Add GetSerialConsistency() method to Query and Batch for
API symmetry with GetConsistency()
Key: CASSGO-103
URL: https://issues.apache.org/jira/browse/CASSGO-103
Project: Apache Cassandra Go driver
Issue Type: Bug
Reporter: Johnny Miller
The `Query` and `Batch` types expose `GetConsistency()` to retrieve the normal
consistency level, but there is no corresponding `GetSerialConsistency()`
method to retrieve the serial consistency level used for lightweight
transactions (LWTs). This creates an API asymmetry and makes it impossible to
introspect the serial consistency configuration without tracking it separately.
### Expected Behavior
Add getter methods to retrieve serial consistency, following the same pattern
as normal consistency:
```go
// For Query
func (q *Query) GetSerialConsistency() Consistency
// For Batch
func (b *Batch) GetSerialConsistency() Consistency
```
Statement.getSerialConsistencyLevel() in the Java driver returns the serial
ConsistencyLevel.
The Go driver should provide feature parity for consistency level introspection.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]