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.
This commit is contained in:
77 files changed
+441
-321
No files matched your search
@@ -86,6 +86,9 @@ the first place.
|
||||
* github.com/kr/pretty
|
||||
* Jeff
|
||||
* github.com/lib/pq
|
||||
* Jim
|
||||
* Mike
|
||||
* github.com/jackc/pgx
|
||||
* Jim
|
||||
* Mike
|
||||
* github.com/mattn/go-colorable
|
||||
|
||||
Reference in new issue
Block a user