boulder/db
Jacob Hoffman-Andrews 7d66d67054
It's borpin' time! (#6982)
This change replaces [gorp] with [borp].

The changes consist of a mass renaming of the import and comments / doc
fixups, plus modifications of many call sites to provide a
context.Context everywhere, since gorp newly requires this (this was one
of the motivating factors for the borp fork).

This also refactors `github.com/letsencrypt/boulder/db.WrappedMap` and
`github.com/letsencrypt/boulder/db.Transaction` to not embed their
underlying gorp/borp objects, but to have them as plain fields. This
ensures that we can only call methods on them that are specifically
implemented in `github.com/letsencrypt/boulder/db`, so we don't miss
wrapping any. This required introducing a `NewWrappedMap` method along
with accessors `SQLDb()` and `BorpDB()` to get at the internal fields
during metrics and logging setup.

Fixes #6944
2023-07-17 14:38:29 -07:00
..
gorm.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
gorm_test.go Improve MultiInserter (#6572) 2023-01-30 09:45:45 -08:00
interfaces.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
map.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
map_test.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
multi.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
multi_test.go Improve MultiInserter (#6572) 2023-01-30 09:45:45 -08:00
qmarks.go Extract out `db.QuestionMarks` function (#6568) 2023-01-10 14:29:31 -08:00
qmarks_test.go Re-enable errcheck linter (#6819) 2023-04-14 15:41:12 -04:00
rollback.go SA: use wrapped database maps/transactions. (#4585) 2019-12-04 13:03:09 -05:00
rollback_test.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
transaction.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00