Project

General

Profile

Actions

Task #5318

closed

avoid calling MySQLdb directly to connect when sinedon.cfg is read as input kwargs

Added by Anchi Cheng about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
11/16/2017
Due date:
% Done:

0%

Estimated time:

Description

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

dbconfig = sinedon.getConfig('leginondata')
dbconnect = MySQLdb.Connect(**dbconfig)
dbconnect.autocommit(True)

Becomes

dbconfig = sinedon.getConfig('leginondata')
dbconnect = sinedon.sqldb.connect(**dbconfig)


Related issues 1 (1 open0 closed)

Related to Leginon - Task #5223: migrate sinedon to be compatible with InnoDB sql engineAssignedAnchi Cheng09/20/2017

Actions
Actions

Also available in: Atom PDF