Jim Lambert
a7d8bda7c0
add missing parameter
2020-05-21 09:30:52 -04:00
Jim
b75feb957d
require fieldMaskPaths in Update and refactor errors ( #71 )
2020-05-21 09:24:37 -04:00
Jim
ee46266893
ErrRecordNotFound from LookupWhere() when no rows found ( #59 )
2020-05-18 12:57:45 -04:00
2aca5fff03
fix transaction rollbacks in DoTx ( #55 )
...
* fix transaction rollbacks in DoTx
* better assertion
* Update internal/db/read_writer_test.go
Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com >
Co-authored-by: Jim Lambert <jimlambrt@Jims-MBP-3.home >
Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com >
2020-05-15 08:38:36 -04:00
Jim
c04c73453f
refactor Update/Delete to return the number of rows affected. ( #46 )
2020-05-12 11:57:28 -04:00
Jim
61ca88dac9
refactor to use db.New() and clean up error msgs ( #45 )
2020-05-12 06:51:02 -04:00
Jeff Mitchell
ad8d4e9c80
Rename Db's Tx to underlying
2020-05-11 21:05:11 -04:00
Jeff Mitchell
670abaed88
Rename GormReadWriter -> Db
2020-05-11 16:54:05 -04:00
Jim
ee4a0d3f45
refactor lookups so we can easily check for not found and do the "right" thing in the repos ( #42 )
2020-05-11 16:21:09 -04:00
Jim
bd5ddea6e4
refactor clonable to not rely on the resource interface ( #36 )
2020-05-11 10:31:15 -04:00
Jim
0676ea51f1
refactor oplog to use db/internal migrations, remove InitTicket() for more reliability and simplify test step up and tear down ( #37 )
2020-05-11 10:30:44 -04:00
Jim
8a5197e39e
implement schema, store and repository for IAM scopes of organization and project
2020-05-08 11:36:28 -04:00
Jim
725a777baf
refactor friendly name to just be name ( #29 )
2020-05-05 16:35:24 -04:00
Jim
27b4d7a034
basic internal db interfaces and Gorm implementation
...
* db reader and writer interfaces which should allow us to encapsulate the vast majority of database code in this package.
* GormReadWriter implementation of the Reader and Writer interfaces
2020-05-05 13:29:47 -04:00