You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Can we run the SQL scripts directly from Python?
That is, not by calling the
psql
orsqlcmd
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 relevantbin
directories in theirPATH
. The disadvantage might be that it's just to much hassle to make it work.The text was updated successfully, but these errors were encountered: