Skip to content

add engine kwargs#28

Merged
jph00 merged 1 commit intomainfrom
feat/27-engine-kwargs
Jan 29, 2026
Merged

add engine kwargs#28
jph00 merged 1 commit intomainfrom
feat/27-engine-kwargs

Conversation

@comhar
Copy link
Copy Markdown
Contributor

@comhar comhar commented Jan 28, 2026

fixes #27

This pr adds an engine_kws param to the Database class. For databases like postgres this makes it easy to adjust parameters like the connection pool size, max_overflow or set the application name which makes database performance troubleshooting, fine-tuning much easier.

db = Database("postgresql://...", engine_kws={"connect_args": {"application_name": "main_app"}, "pool_size": 2, "max_overflow": 3})

@comhar comhar self-assigned this Jan 28, 2026
@comhar comhar added the enhancement New feature or request label Jan 28, 2026
@comhar comhar requested a review from jph00 January 28, 2026 07:27
@jph00
Copy link
Copy Markdown
Contributor

jph00 commented Jan 29, 2026

good idea :)

@jph00 jph00 merged commit 7bd0fd7 into main Jan 29, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add engine kwargs

2 participants