Update gocql to v1.15.1 (#323)

* Update gocql to v1.15.1

* Add SetHostID to Queryx and Batch
This commit is contained in:
Dmitry Kropachev
2025-06-10 13:24:39 -04:00
committed by GitHub
parent 16bd2372a7
commit a8d276713e
7 changed files with 38 additions and 34 deletions

View File

@@ -147,6 +147,15 @@ func (q *Queryx) BindStructMap(arg0 interface{}, arg1 map[string]interface{}) *Q
return q
}
// SetHostID allows to define the host the query should be executed against. If the
// host was filtered or otherwise unavailable, then the query will error. If an empty
// string is sent, the default behavior, using the configured HostSelectionPolicy will
// be used. A hostID can be obtained from HostInfo.HostID() after calling GetHosts().
func (q *Queryx) SetHostID(hostID string) *Queryx {
q.Query.SetHostID(hostID)
return q
}
func (q *Queryx) bindStructArgs(arg0 interface{}, arg1 map[string]interface{}) ([]interface{}, error) {
arglist := make([]interface{}, 0, len(q.Names))