summaryrefslogtreecommitdiff
path: root/pgruntime/connector.go
Commit message (Collapse)AuthorAgeFilesLines
* add testing/pgruntimeStefan Majewsky2026-08-011-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 Majewsky2026-07-311-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 Majewsky2026-07-311-2/+7
|
* pgruntime: add OverrideDatabaseNameStefan Majewsky2026-07-311-3/+27
|
* gsql: add context.Context argument to GSQLClose()Stefan Majewsky2026-07-301-3/+3
| | | | Required for pgx.Conn.Close().
* add package pgruntimeStefan Majewsky2026-07-301-0/+112