Specify explicitly that use gocqlx.Session.Qury API insteawd of the deprecated Query API

This commit is contained in:
xiang.wang
2020-05-29 18:14:43 +08:00
committed by Michal Jan Matczuk
parent ae6d066255
commit b79c395c11

View File

@@ -98,7 +98,7 @@ type Queryx struct {
// Query creates a new Queryx from gocql.Query using a default mapper. // Query creates a new Queryx from gocql.Query using a default mapper.
// //
// Deprecated: Use Session API instead. // Deprecated: Use gocqlx.Session.Query API instead.
func Query(q *gocql.Query, names []string) *Queryx { func Query(q *gocql.Query, names []string) *Queryx {
return &Queryx{ return &Queryx{
Query: q, Query: q,