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

Avoid using subprocess to call psql #133

Open
frafra opened this issue Sep 27, 2022 · 1 comment
Open

Avoid using subprocess to call psql #133

frafra opened this issue Sep 27, 2022 · 1 comment

Comments

@frafra
Copy link
Contributor

frafra commented Sep 27, 2022

psycopg2 is imported. It would be better to rely on it instead of requiring to install psql as additional dependency, in my opinion.

call(command)

@NyakudyaA
Copy link
Collaborator

I think running SQL scripts using psycopg2 has some drawbacks i.e https://stackoverflow.com/questions/17261061/execute-sql-schema-in-psycopg2-in-python

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

No branches or pull requests

2 participants