Remove deprecated top level functions Get and Select

Signed-off-by: Michał Matczuk <michal@scylladb.com>
This commit is contained in:
Michał Matczuk
2020-01-17 14:41:56 +01:00
committed by Michal Jan Matczuk
parent 7c0a35d621
commit 710f921b79
3 changed files with 14 additions and 25 deletions

View File

@@ -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