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

Can't specify a Postgres database #363

Open
jbw-trlyr opened this issue Jan 25, 2024 · 0 comments · May be fixed by #392
Open

Can't specify a Postgres database #363

jbw-trlyr opened this issue Jan 25, 2024 · 0 comments · May be fixed by #392

Comments

@jbw-trlyr
Copy link

Was looking to swap out SQLite with a postgres url.

File "C:\Users\jorda\AppData\Local\pypoetry\Cache\virtualenvs\dataloading-eRh_KXwk-py3.12\Lib\site-packages\psycopg2\extensions.py", line 167, in make_dsn
    parse_dsn(dsn)
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) invalid dsn: invalid connection option "check_same_thread"

This appears to be an issue in the create engine call not supporting Postgres. specifical in this file:

connect_args={"check_same_thread": False},

specifically this argument "check_same_thread": False is a SQLite only and breaks when passing in a Postgres URL.

Not sure if I am missing something, but it would be great to add Postgres support

@PierrickBrun PierrickBrun linked a pull request Apr 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant