Jim
8d6dee09a9
refact: Add db.DB wrapper and refact all test fixtures to use it. ( #1535 )
...
* refact: Changes required for gorm v2
* refact: Add db.DB wrapper and refact all test fixtures to use it
Stop leaking the gorm abstraction within our unit tests.
* refact: Migrate direct calls to pq to pgx driver
The refactor will remove the remaining direct dependencies on
the pq driver which has been deprecated in favor of the pgx
driver.
It includes the addition of common.SqlOpen which is a wrapper around
sql.Open, which is needed to deal with the driver name changing from
"postgres" to "pgx" but in our code base the dialect and driver are
synonyms.
2021-09-30 09:17:27 -04:00
Jim
136ac00b49
refact: Changes required for gorm v2 ( #1528 )
2021-09-30 08:47:34 -04:00
Louis Ruch
7387cec475
Remove sentinel errors ( #968 )
...
* Remove sentinal errors
2021-03-05 06:34:06 -08:00
Michael Gaffney and Jeff Mitchell
94cb79bbdd
See how Boundary would look with gofumpt applied ( #853 )
...
* See how Boundary would look with https://github.com/mvdan/gofumpt applied
Results of running `gofumpt -w -s .`
* Update tools file and Makefile for gofumpt
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
2021-01-07 10:02:32 -05:00
Louis Ruch
bfbb179741
ICU-738/Refactor internal/db to domain errors ( #815 )
...
* Refactor internal/db to domain errors
2020-12-21 10:07:34 -08:00
Louis Ruch
ec0020de90
Refactor host_repo -> domain errors ( #786 )
...
* Refactor domain errors: New -> E, create helper New and Wrap
* Update host repo to use domain errors
2020-12-09 10:11:38 -08:00
Jim
af6ef1b687
Refactor existing sentinel errors ( #774 )
2020-11-05 16:54:03 -05:00
Jim
1e71c55920
deprecate access to underlying *sql.DB via internal/db.DB() ( #506 )
2020-09-30 18:11:59 -04:00
Todd Knight
b998591add
Adding and updating host address validation checks ( #350 )
2020-09-12 22:07:56 -07:00
Michael Gaffney
de162c5533
Replace and remove ErrNilParameter with ErrInvalidParameter ( #295 )
2020-08-25 12:18:14 -04:00
Todd Knight
d5678c4f80
Handler for Host CRUDL actions ( #287 )
2020-08-20 08:20:26 -07:00
Jim
9570897032
basic keys mgmt repo ( #264 )
2020-08-19 16:47:18 -04:00
Michael Gaffney
a413ad7b84
Static Host: Lookup, List and Delete ( #283 )
...
* Implement LookupHost
* Implement ListHosts
* Implement DeleteHost
2020-08-19 14:14:14 -04:00
Michael Gaffney
041e1f9fd3
Update host ( #278 )
...
* Add IsNotNullError function to db package
* Let the database handle default values not gorm
* Implement UpdateHost
* Remove unnecessary clone
2020-08-18 16:50:26 -04:00
Michael Gaffney
e18cdc52b3
Create host ( #276 )
...
* Change testHostCatalog methods to be like other resource test methods
* Implement CreateHost
* Make allocHost return a pointer to a Host
2020-08-17 17:06:31 -04:00