Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add engine_params parameter to flask_sqlalchemy.SQLAlchemy constructor #597

Closed
wants to merge 1 commit into from
Closed

Add engine_params parameter to flask_sqlalchemy.SQLAlchemy constructor #597

wants to merge 1 commit into from

Conversation

RStatkevych
Copy link

One of the most discussed topic of issues is to add some additional parameters for passing to sqlalchemy.create_engine function (http://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine). engine_params dictionary is passed 'as is' to sqlalchemy.create_engine, so now it allows to pass such parameters as isolation_level (#120 ), pool_pre_ping (#577 ) etc.

Example of usage:

from sqlalchemy.pool import StaticPool

db = SQLAlchemy(engine_params={'isolation_level': 'READ_UNCOMMITED', 'poolclass': StaticPool})

@davidism
Copy link
Member

Duplicate of #487.

@davidism davidism closed this Feb 23, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants