Start migrating blink. Also add better shutdown handling for ogcard

This commit is contained in:
Austin McKinley
2025-09-23 15:17:49 -07:00
parent 46a97fadcb
commit 0bc2355226
4 changed files with 98 additions and 28 deletions
+10
View File
@@ -34,6 +34,16 @@ export class Database {
static postgres(opts: PgOptions): Database {
const {schema, url, txLockNonce} = opts
log.info(
{
schema,
poolSize: opts.poolSize,
poolMaxUses: opts.poolMaxUses,
poolIdleTimeoutMs: opts.poolIdleTimeoutMs,
},
'Creating database connection',
)
const pool =
opts.pool ??
new Pg.Pool({