By Sean Reifschneider Date 2010-11-12 18:23 Tags database, python, sean reifschneider, sql
I've pushed up my Python Psycopg2 database wrapper to github after making some changes over lunch. I added "insert" and "dictinsert" methods that will automatically do insert statements based in either keyword arguments, or a dictionary of values passed. For example:
insert('users', name = 'Sean', password = 'secret')
dictinsert('users', { 'name' : 'Sean', 'password' : 'secret' })
If you're interested, grab it at Git Hub's python-psycopgwrap page.
comments powered by Disqus