MySQLdb and dictcursor

borris borris at grange.com
Mon Jul 24 08:06:35 EDT 2006


doesn anyone know a good reference, tute or examples of
MySQLdb's dictCursor 
I want to pass dictionaries into the sql exec statements.
I could only succeed with text as values


this is how I got the cursor object to call  cursor.execute("query")
connection = MySQLdb.connect( host = "localhost", user = 
self.config.userName, passwd = self.config.password, cursorclass = 
MySQLdb.cursors.DictCursor)   

thanks



More information about the Python-list mailing list