Introduce Unsafe method on Queryx

It enables local control over `unsafe` mode for .Bind methods of `Queryx` and iterators
spawn by it.
This commit is contained in:
Dmitry Kropachev
2024-06-14 11:21:57 -04:00
committed by Sylwia Szunejko
parent a222c1f067
commit c6f942afc7
4 changed files with 17 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/scylladb/go-reflectx"
)
// DefaultUnsafe enables the behavior of forcing the iterator to ignore
// DefaultUnsafe enables the behavior of forcing queries and iterators to ignore
// missing fields for all queries. See Unsafe below for more information.
var DefaultUnsafe bool