1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2025-06-30 23:23:40 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
cdd90f86db Fix placeholder for the database template name
When a template database name contains invalid characters such as `-`,
the request to create a new database stops working.

To reduce this behavior, quotation marks have been added.
2023-07-15 20:34:41 +03:00
7613653f39 Add set of small fixes to testingpg package
Added some set of disparate improvements, to improve readability.
2023-07-13 21:24:03 +03:00
59c4d2e3e1 Make a singleton for *pgxpool.Pool
This should reduce the number of parasitic connection reopenings.
2023-07-12 22:40:44 +03:00
4bb736475b Make a lazy loading for opening a connection
In the current approach, the connection logic is only triggered at the
moment of immediate need for connection.

We also get a single connection opening point.
2023-07-12 22:17:11 +03:00
b346272f7f Publish an example testing go code with Postgres 2023-07-05 01:31:59 +03:00