Right now, if I want to leave out some fields from be scanned into a struct, I have do to something like
query.Iter().Unsafe().Select(&myStruct);
...
defer query.Release()
This took me quite some time searching through the code to find out, and the documentation for QueryX.Iter() doesn't even suggest this is a valid use case.
Ideally, I could invoke instead:
query.Unsafe().SelectRelease(&myStruct)
This would be similar to the DB.Unsafe() method and easier to use.
If I'm not missing something, I guess I could create a PR for it.
Right now, if I want to leave out some fields from be scanned into a
struct, I have do to something likeThis took me quite some time searching through the code to find out, and the documentation for
QueryX.Iter()doesn't even suggest this is a valid use case.Ideally, I could invoke instead:
This would be similar to the
DB.Unsafe()method and easier to use.If I'm not missing something, I guess I could create a PR for it.