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

Installer: consider running the SQL scripts directly #145

Open
devilgate opened this issue Mar 29, 2019 · 0 comments
Open

Installer: consider running the SQL scripts directly #145

devilgate opened this issue Mar 29, 2019 · 0 comments
Labels
future development Things to consider in the future nice to have

Comments

@devilgate
Copy link
Member

Can we run the SQL scripts directly from Python?

That is, not by calling the psql or sqlcmd commands, but by passing the script file or its contents to a library function that connects to Postgres or SQL server? Maybe Psycopg (for Postgres), since we're already importing that. The advantage would be that the user wouldn't need to have the relevant bin directories in their PATH. The disadvantage might be that it's just to much hassle to make it work.

@devilgate devilgate added nice to have future development Things to consider in the future labels Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future development Things to consider in the future nice to have
Projects
None yet
Development

No branches or pull requests

1 participant