diff options
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,12 @@ package main +import "github.com/jackc/pgx/v5/pgxpool" + type server struct { config Config + + // database serves as the primary database handle for this entire application. + // Transactions or single reads may be used from it. A [pgxpool.Pool] is + // necessary to safely use pgx concurrently; pgx.Conn, etc. are insufficient. + database *pgxpool.Pool } |