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:
committed by
Sylwia Szunejko
parent
a222c1f067
commit
c6f942afc7
@@ -51,6 +51,7 @@ func (s Session) ContextQuery(ctx context.Context, stmt string, names []string)
|
||||
Names: names,
|
||||
Mapper: s.Mapper,
|
||||
tr: DefaultBindTransformer,
|
||||
unsafe: DefaultUnsafe,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +66,7 @@ func (s Session) Query(stmt string, names []string) *Queryx {
|
||||
Names: names,
|
||||
Mapper: s.Mapper,
|
||||
tr: DefaultBindTransformer,
|
||||
unsafe: DefaultUnsafe,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user