Remove deprecated top level functions Get and Select
Signed-off-by: Michał Matczuk <michal@scylladb.com>
This commit is contained in:
committed by
Michal Jan Matczuk
parent
7c0a35d621
commit
710f921b79
14
iterx.go
14
iterx.go
@@ -17,20 +17,6 @@ import (
|
||||
// missing fields for all queries. See Unsafe below for more information.
|
||||
var DefaultUnsafe bool
|
||||
|
||||
// Get is a convenience function for creating iterator and calling Get.
|
||||
//
|
||||
// DEPRECATED use Queryx.Get or Queryx.GetRelease.
|
||||
func Get(dest interface{}, q *gocql.Query) error {
|
||||
return Iter(q).Get(dest)
|
||||
}
|
||||
|
||||
// Select is a convenience function for creating iterator and calling Select.
|
||||
//
|
||||
// DEPRECATED use Queryx.Select or Queryx.SelectRelease.
|
||||
func Select(dest interface{}, q *gocql.Query) error {
|
||||
return Iter(q).Select(dest)
|
||||
}
|
||||
|
||||
// Iterx is a wrapper around gocql.Iter which adds struct scanning capabilities.
|
||||
type Iterx struct {
|
||||
*gocql.Iter
|
||||
|
||||
Reference in New Issue
Block a user