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
c1f645216c
Improve Update() to pass context to Exec
2020-10-26 15:32:22 -03:00
Vinícius Garcia
733284997f
fixup! Remove the gorm dependency from the Update func
2020-10-26 13:21:48 -03:00
Vinícius Garcia
8c1c483462
Improve comments on StructToMap()
2020-10-26 09:36:33 -03:00
Vinícius Garcia
417ea4660f
Remove the gorm dependency from the Update func
2020-10-26 00:15:24 -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
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
76e5ad0f0f
Improve comment on FillSliceWith() helper func
2020-09-30 22:12:00 -03:00
Vinícius Garcia
ad77d0a1a0
Add FillSliceWith helper function
2020-09-30 22:11:41 -03:00
Vinícius Garcia
54fa1f023a
Remove GetByID function because it was redundant
2020-09-30 19:41:54 -03:00
Vinícius Garcia
1a08c61198
Fix english on comment
2020-09-29 15:59:04 -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
6c725a69f5
Add Query & QueryNext funcs
2020-09-24 14:17:19 -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
80fad8ac3f
Add ChangeTable function
2020-09-16 18:26:00 -03:00
Vinícius Garcia
a5ee2458ec
Fix lint problems
2020-09-14 15:55:54 -03:00
Vinícius Garcia
120006008d
Rename .go files to be more generic
2020-09-14 15:46:50 -03:00