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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harrison/engine args #2177

Merged
merged 2 commits into from
Mar 30, 2023
Merged

Harrison/engine args #2177

merged 2 commits into from
Mar 30, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

alvarosevilla95 and others added 2 commits March 29, 2023 22:20
Adds a engine_args parameter to pass arbitrary kwargs to the
create_engine function. Useful to set db parameters such as statement
timeout.
Example:
```
engine_args = {'connect_args': {'options': '-c lock_timeout=30000 -c statement_timeout=30000'}}
db = SQLDatabase.from_uri(db_url, engine_args)
```
@hwchase17 hwchase17 merged commit bcfd071 into master Mar 30, 2023
@hwchase17 hwchase17 deleted the harrison/engine-args branch March 30, 2023 05:29
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.

None yet

2 participants