Project

General

Profile

Task #5318

Updated by Anchi Cheng about 7 years ago

Use sinedon.sqldb.connect instead because we add more configuration in sinedon.cfg that should not go into MySQLdb.Connect 

 <pre> 
 dbconfig = sinedon.getConfig('leginondata') 
 dbconnect = MySQLdb.Connect(**dbconfig) 
 dbconnect.autocommit(True) 
 </pre> 

 Becomes 
 <pre> 
 dbconfig = sinedon.getConfig('leginondata') 
 dbconnect = sinedon.sqldb.connect(**dbconfig) sinedon.sql.connect(**dbconfig) 
 </pre>

Back