diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-07-31 22:27:58 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-07-31 22:27:59 +0200 |
| commit | 5bff2a6c9e14763ca8764cf75adba0efbf990e50 (patch) | |
| tree | 466030af2d3da2210e806e083567ee35893adb1f /pgruntime/pgruntime.go | |
| parent | c953ebcc54296ac36fd199fa66fb0763f1790334 (diff) | |
| download | go-gg-5bff2a6c9e14763ca8764cf75adba0efbf990e50.tar.gz | |
pgruntime: in ConnectForTest, only truncate tables instead of recreating the 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.
Diffstat (limited to 'pgruntime/pgruntime.go')
| -rw-r--r-- | pgruntime/pgruntime.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pgruntime/pgruntime.go b/pgruntime/pgruntime.go index ed44076..17a6c94 100644 --- a/pgruntime/pgruntime.go +++ b/pgruntime/pgruntime.go @@ -28,5 +28,4 @@ // [gg-pgx]: https://git.xyrillian.de/go-gg-pgx/ package pgruntime -// TODO: before merging this branch, start work on go-gg-pgx to verify that we're not painting ourselves into a corner with the gsql.Handle interfaces // TODO: test coverage via separate module importing github.com/lib/pq |
