Commit Graph

26 Commits (ad77d0a1a0fcc1996a5719d65df3dd7f0ae6e78f)

Author SHA1 Message Date
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
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 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 7b30856248 Rename go mod project 2020-09-22 16:59:04 -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
Vinícius Garcia a3af26e3bd Update NewClient to actually work 2020-09-14 15:45:35 -03:00
Vinícius Garcia 06a7e37d0e Update Delete function to receive ids 2020-09-14 15:13:54 -03:00
Vinícius Garcia 8e8a9a7309 Add tests to StructToMap() 2020-09-14 12:02:05 -03:00
Vinícius Garcia bb3b36c21e Add first implementation of the Update operation 2020-09-12 03:07:35 -03:00
Vinícius Garcia e7a7b13eef Add slices/ helper pkg 2020-09-11 19:48:32 -03:00
Vinícius Garcia fbb7d9ffca Add GetByID() 2020-09-11 19:48:13 -03:00
Vinícius Garcia 25e00fdad6 Add feature of escaping params to Find function
This change was made based on a suggestion from
Raí Tamarindo (raitamarindo@gmail.com)
2020-09-11 19:06:53 -03:00
Vinícius Garcia 387c2cdd74 Rename the Get function to Find
This change was made based on a suggestion from
Raí Tamarindo (raitamarindo@gmail.com)
2020-09-11 19:03:15 -03:00
Vinícius Garcia 67cedb1f81 Add delete operation 2020-09-11 18:59:55 -03:00
Vinícius Garcia 4e156b8f26 Add Makefile 2020-09-11 18:48:48 -03:00
Vinícius Garcia 38ce8a9b0e Remove unnecessary use of reflection 2020-09-11 18:48:29 -03:00
Vinícius Garcia 2f651581ea Initial version
This code was first developed on another repo before we decided
to move it a separated repository.
2020-09-11 18:37:41 -03:00