summaryrefslogtreecommitdiff
path: root/pgruntime
Commit message (Collapse)AuthorAgeFilesLines
* pgruntime: add ConnectionTarget.ApplicationName attributeStefan Majewsky2026-08-052-12/+76
|
* pgruntime: protect against concurrent migrationsStefan Majewsky2026-08-051-1/+16
|
* pgruntime: fix `psql --version` parsing on UbuntuStefan Majewsky2026-08-051-2/+5
| | | | | This currently breaks all repeated calls to WithTestDB (i.e., all users where more than two packages call WithTestDB) within GH Actions.
* pgruntime: link to pkg.go.dev for gg-pgxStefan Majewsky2026-08-011-1/+1
|
* add testing/pgruntimeStefan Majewsky2026-08-014-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 pathStefan Majewsky2026-07-312-4/+34
|
* pgruntime: in ConnectForTest, only truncate tables instead of recreating the ↵Stefan Majewsky2026-07-314-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 Majewsky2026-07-311-2/+7
|
* pgruntime: fix parameter syntax in migration queryStefan Majewsky2026-07-311-1/+1
|
* 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-309-0/+875