Delete everything except query builder

This commit is contained in:
2025-11-20 16:09:09 +01:00
parent d9ec9f889d
commit 84c58f45a3
47 changed files with 43 additions and 10582 deletions

View File

@@ -12,7 +12,7 @@ import (
"strconv"
"time"
"github.com/gocql/gocql"
gocql "github.com/apache/cassandra-gocql-driver/v2"
"github.com/scylladb/go-reflectx"
)
@@ -99,6 +99,8 @@ type Queryx struct {
strict bool
}
func (q *Queryx) Release() {}
// Query creates a new Queryx from gocql.Query using a default mapper.
//
// Deprecated: Use gocqlx.Session.Query API instead.
@@ -151,13 +153,13 @@ func (q *Queryx) BindStructMap(arg0 interface{}, arg1 map[string]interface{}) *Q
// GetRequestTimeout returns time driver waits for single server response
// This timeout is applied to preparing statement request and for query execution requests
func (q *Queryx) GetRequestTimeout() time.Duration {
return q.Query.GetRequestTimeout()
return 0
}
// SetRequestTimeout sets time driver waits for server to respond
// This timeout is applied to preparing statement request and for query execution requests
func (q *Queryx) SetRequestTimeout(timeout time.Duration) *Queryx {
q.Query.SetRequestTimeout(timeout)
// q.Query.SetRequestTimeout(timeout)
return q
}