Michał Matczuk
6e4a05de42
queryx: added Get, GetRelease, Select and SelectRelease helper functions
...
I have piggy backed with this change some docs update.
Fixes #41
2018-05-23 11:25:00 +02:00
Josh Giles
cbe2659e0d
Do not release queries in Get/Select. Fix #25
...
Releasing query objects in Get/Select could easily lead to
double-releases, which can cause dangerous and tricky data races.
Remove the query field of Iterx and its usages (all release-related).
This is a breaking API change, because it removes the exported method
ReleaseQuery.
Update documenting examples to demonstrate the deferred query release
pattern clients can use to manage query release.
2017-11-13 10:13:38 +01:00
Michał Matczuk
a66169d3ba
Update iterx.go
...
iter: doc update
2017-10-02 12:46:25 +02:00
Michał Matczuk
3ce82982bb
iterx: ErrNotFound for Get only
2017-09-28 15:10:47 +02:00
Michał Matczuk
f2af2384ed
iter: ErrNotFound bug fix
2017-09-22 15:02:12 +02:00
Michał Matczuk
9e40fcfed4
license: added license header
2017-09-21 21:43:27 +02:00
Michał Matczuk
46603152a1
error: %s replaced with %q in missing field errors
2017-09-21 21:29:44 +02:00
Michał Matczuk
e079a7b36a
iter: return ErrNotFound for no results
2017-08-24 10:53:56 +02:00
Michał Matczuk
4025a4d426
docs: whitespace fix
2017-08-23 16:07:55 +02:00
Michał Matczuk
4be0a35207
iter: unsafe
2017-08-23 15:26:16 +02:00
Michał Matczuk
a4a965f662
get: rename v to value follow select
2017-08-03 12:06:02 +02:00
Michał Matczuk
3b6b4ff687
select: reduce allocations and improve code structure
2017-08-03 12:02:23 +02:00
Michał Matczuk
fee479a584
Iterx put to separate file
2017-07-25 11:09:41 +02:00