preload
Mar 30

1ebeb1d2f212046a4e47fcd414dbad9b1I’ve been doing some nasty database work with Python and MySQL.  Specifically, I’ve got long programs that run eight to ten hours, and sometimes I need to kill them and restart them later.

So… I wanted a way to trap CTRL+C and clean up.  That is, I wanted to have transactions without actually having to use transactions.  I’m funny that way.  (In other news, I’m probably moving to PostgreSQL at some point.)

Anyway, here’s what I came up with.  You might find it useful, too. Continue reading »

  • Share/Bookmark
Tagged with: