Skip to content

Conversation

@grk
Copy link
Contributor

@grk grk commented Oct 1, 2025

Enables configuring Database fields via URL query parameters in databases_from_urls(), allowing flexible configuration through environment variables without separate config files.

Supported parameters: database_name, role, shard, user, password, pool_size, min_pool_size, pooler_mode, statement_timeout, idle_timeout, server_lifetime, read_only

Example:
PGDOG_DATABASE_URL_1=postgres://user:pass@host:port/db?database_name=realdb&role=replica&shard=3

Enables configuring Database fields via URL query parameters in
databases_from_urls(), allowing flexible configuration through
environment variables without separate config files.

Supported parameters: database_name, role, shard, user, password,
pool_size, min_pool_size, pooler_mode, statement_timeout, idle_timeout,
server_lifetime, read_only

Example:
PGDOG_DATABASE_URL_1=postgres://user:pass@host:port/db?database_name=realdb&role=replica&shard=3
@CLAassistant
Copy link

CLAassistant commented Oct 1, 2025

CLA assistant check
All committers have signed the CLA.

@grk grk force-pushed the database-config-from-url-query-params branch from 332c953 to 125b863 Compare October 2, 2025 13:08
Copy link
Collaborator

@levkk levkk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇

@levkk levkk merged commit cecfceb into pgdogdev:main Oct 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants