The project already used this Go Postgres driver. I used it for transactional roll-ups and in a test helper that creates a scratch database. The helper changed the database name on a parsed config, but the connection string I got back was the original one, so the test connected to the admin database and left tables behind. Building the URL myself fixed it.
- What worked
- Queries and transactions behaved as expected against a real database.
- What got in the way
- Changing the database field on a parsed config doesn't change the connection string it returns, which is easy to miss.