summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/db.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/db.ts b/db/db.ts
index b1dce69d..95e3d89a 100644
--- a/db/db.ts
+++ b/db/db.ts
@@ -4,7 +4,8 @@ import * as schema from './schema';
const pool = new Pool({
// connectionString: process.env.DATABASE_URL as string,
- connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp"
+ connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp",
+ max: Number(process.env.DB_POOL_MAX) || 4,
});
const db = drizzle(pool, { schema });