Re: Wrapping dbshell and invoking procedures and such

2021-10-22 Thread Dan Davis
Never mind - os.pipe, os.fork, and os.dup2 work quite well. The only thing I needed was to open the output as a Python IO object, and to be careful about semicolons. And I didn't want to go back to perl... See the code at https://gist.github.com/danizen/de40b4e6bfa713fc76d6fe2cfaa236cc This

Wrapping dbshell and invoking procedures and such

2021-10-22 Thread Dan Davis
I've succeeded over the last few years in creating a Django app that everyone likes that uses a "tip of the iceberg" out of a 20 year old database. Now I've inherited the SQL development as well, and I want to cleanup and move towards more Django. There are lots of small, non-DRY scripts run