Skip to content

Commit 16088bb

Browse files
committed
rename DB_POOL_MAX to DATABASE_POOL_MAX
1 parent 522e2f0 commit 16088bb

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ SLACK_BOT_TOKEN=xoxb-
22
SLACK_APP_TOKEN=xapp-
33
GITHUB_TOKEN=github_pat_
44
DATABASE_URL=postgres://root:password@localhost:5432/app
5-
# DB_POOL_MAX=10
5+
# DATABASE_POOL_MAX=10

installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ DATABASE_URL=postgres://user:password@localhost/releases_db
4646
# Optional
4747
# POLL_CRON=0 * * * * # How often to check releases (default: every hour)
4848
# DIGEST_CRON=30 7 * * * # When to send the periodic digest in UTC (default: 07:30 UTC)
49-
# DB_POOL_MAX=10 # Max connections in the DB connection pool (default: 10)
49+
# DATABASE_POOL_MAX=10 # Max connections in the DB connection pool (default: 10)
5050
```
5151

5252
All tables are created in the `main` PostgreSQL schema. To use a different schema, change the hardcoded value in `src/db/schema.ts` and `drizzle.config.ts`, then regenerate and re-apply migrations.

src/db/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { positiveInt, requiredString } from '@utils/env'
44
export const db = drizzle({
55
connection: {
66
url: requiredString('DATABASE_URL'),
7-
max: positiveInt('DB_POOL_MAX', 10),
7+
max: positiveInt('DATABASE_POOL_MAX', 10),
88
},
99
})

src/env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare module 'bun' {
99

1010
// Database
1111
DATABASE_URL: string
12-
DB_POOL_MAX?: string
12+
DATABASE_POOL_MAX?: string
1313
// Jobs
1414
POLL_CRON?: string
1515
DIGEST_CRON?: string

0 commit comments

Comments
 (0)