github apache/cassandra-gocql-driver v1.1.0

latest releases: v1.7.0, v1.7.0-rc1, v1.6.0...
2 years ago

Added

  • Changelog.
  • StreamObserver and StreamObserverContext interfaces to allow observing CQL streams.
  • ClusterConfig.WriteTimeout option now allows to specify a write-timeout different from read-timeout.
  • TypeInfo.NewWithError method.

Changed

  • Supported versions of Go that we test against are now Go 1.17 and Go 1.18.
  • The driver now returns an error if SetWriteDeadline fails. If you need to run gocql on
    a platform that does not support SetWriteDeadline, set WriteTimeout to zero to disable the timeout.
  • Creating streams on a connection that is closing now fails early.
  • HostFilter now also applies to control connections.
  • TokenAwareHostPolicy now panics immediately during initialization instead of at random point later
    if you reuse the TokenAwareHostPolicy between multiple sessions. Reusing TokenAwareHostPolicy between
    sessions was never supported.

Fixed

  • The driver no longer resets the network connection if a write fails with non-network-related error.
  • Blocked network write to a network could block other goroutines, this is now fixed.
  • Fixed panic in unmarshalUDT when trying to unmarshal a user-defined-type to a non-pointer Go type.
  • Fixed panic when trying to unmarshal unknown/custom CQL type.

Deprecated

  • TypeInfo.New, please use TypeInfo.NewWithError instead.

Don't miss a new cassandra-gocql-driver release

NewReleases is sending notifications on new releases.