aboutsummaryrefslogtreecommitdiff
path: root/pgruntime/connector.go
Commit message (Collapse)AuthorAgeFilesLines
* add testing/pgruntimeStefan Majewsky41 hours1-4/+6
| | | | | | | | Testing pgruntime has quickly turned out to be a nightmare, because so many parts of the test logic are not easily reproducible (e.g. `stopDBIfLingering`). I decided to not waste a bunch of time testing code that is relatively compact and easy to verify by careful examination, and that is unlikely to change a lot in the future.
* pgruntime: in ConnectForTest, only truncate tables instead of recreating the ↵Stefan Majewsky2 days1-26/+59
| | | | | | | | database DROP + CREATE DATABASE was measured at 100 ms per ConnectForTest(), which is prohibitively slow in large test suites. This should be more in the ballpark of 10 ms per test.
* pgruntime: add t.Helper() and better error messages in ConnectForTest()Stefan Majewsky3 days1-2/+7
|
* pgruntime: add OverrideDatabaseNameStefan Majewsky3 days1-3/+27
|
* gsql: add context.Context argument to GSQLClose()Stefan Majewsky3 days1-3/+3
| | | | Required for pgx.Conn.Close().
* add package pgruntimeStefan Majewsky3 days1-0/+112