Friday November 12, 2010 at 18:23
Subject: Released python-psycopgwrap on github.
Keywords:
Database, Python, SQL
Posted by: Sean Reifschneider
Related entries:Psycopgwrap now can access columns as attributes. by Sean Reifschneider, Friday January 14, 2011 at 00:20
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:
(Post Reply)
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.
(Post Reply)