| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | pgruntime: link to pkg.go.dev for gg-pgx | Stefan Majewsky | 39 hours | 1 | -1/+1 |
| | | |||||
| * | add testing/pgruntime | Stefan Majewsky | 39 hours | 4 | -24/+14 |
| | | | | | | | | | 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: allow overriding .testdb path | Stefan Majewsky | 2 days | 2 | -4/+34 |
| | | |||||
| * | pgruntime: in ConnectForTest, only truncate tables instead of recreating the ↵ | Stefan Majewsky | 2 days | 4 | -29/+95 |
| | | | | | | | | | 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 Majewsky | 3 days | 1 | -2/+7 |
| | | |||||
| * | pgruntime: fix parameter syntax in migration query | Stefan Majewsky | 3 days | 1 | -1/+1 |
| | | |||||
| * | pgruntime: add OverrideDatabaseName | Stefan Majewsky | 3 days | 1 | -3/+27 |
| | | |||||
| * | gsql: add context.Context argument to GSQLClose() | Stefan Majewsky | 3 days | 1 | -3/+3 |
| | | | | | Required for pgx.Conn.Close(). | ||||
| * | add package pgruntime | Stefan Majewsky | 3 days | 9 | -0/+875 |
