Vinícius Garcia
6978474d41
Improve QueryChunks signature to be easier to use
...
The changes made on this commit were designed by
Raí Tamarindo (raitamarindo@gmail.com ) on a previous meeting.
2020-10-28 08:55:58 -03:00
Vinícius Garcia
4c740118fd
Improve tests for the Update() function
2020-10-25 18:04:33 -03:00
Vinícius Garcia
335c30154d
Fix linter complaints
2020-10-20 21:19:57 -03:00
Vinícius Garcia
5822e23de4
Add tests to QueryChunks function
...
This commit also fixes some bugs on this function and
adds a feature: Now you can return an kissorm.AbortIteration
error to abort the iteration and stop processing chunks.
This does not causes the call to QueryChunks to return an error,
since this is an expected error, thus, it is just ignored.
2020-10-14 15:45:16 -03:00
Vinícius Garcia
654997b09b
Improve coverate on Query & QueryOne funcs
2020-10-14 13:53:09 -03:00
Vinícius Garcia
e8bd504703
Split the Find function into the Query & QueryOne functions
2020-10-13 21:39:39 -03:00
Vinícius Garcia
a3bf34146d
Replace Query&QueryNext for the new QueryChunks func
2020-10-09 15:26:00 -03:00
Vinícius Garcia
ad77d0a1a0
Add FillSliceWith helper function
2020-09-30 22:11:41 -03:00
Vinícius Garcia
9844cb3e9a
Add test for finding multiple users at once
2020-09-30 19:47:32 -03:00
Vinícius Garcia
54fa1f023a
Remove GetByID function because it was redundant
2020-09-30 19:41:54 -03:00
Breno Almeida
614cfde4b7
improve iterator.Close to prevent accidental panics
2020-09-28 18:26:17 -03:00
Breno Almeida
fabffed6d1
apply linter suggestions & make structToMap public
2020-09-28 16:50:27 -03:00
Breno Almeida
cb27801a20
finish implementing query & queryNext funcs
2020-09-24 19:26:59 -03:00
Vinícius Garcia
3f888e0420
Add tests to Update()
2020-09-22 22:15:03 -03:00
Vinícius Garcia
d77fd7d679
Add func UpdateStructWith() for facilitating mocking this ORM
2020-09-22 21:07:03 -03:00
Vinícius Garcia
120006008d
Rename .go files to be more generic
2020-09-14 15:46:50 -03:00