forked from CMS/memberPlumbing
sqlExport: Read membershipworks database info from passwords.py file
This commit is contained in:
parent
516813b895
commit
a6e596cfd4
@ -5,6 +5,7 @@ import MySQLdb
|
||||
import yaml
|
||||
|
||||
from common import membershipworks
|
||||
from passwords import MEMBERSHIPWORKS_DB
|
||||
|
||||
|
||||
def insertFromTableMap(table, data, tableMap):
|
||||
@ -49,7 +50,7 @@ with open('tableMapping.yaml') as f:
|
||||
tableMapping = yaml.load(f, yaml.SafeLoader)
|
||||
|
||||
|
||||
conn = MySQLdb.connect(user='membershipworks', password='asdf', database='membershipworks')
|
||||
conn = MySQLdb.connect(**MEMBERSHIPWORKS_DB)
|
||||
c = conn.cursor()
|
||||
|
||||
def createDefinitionsFromTableMap(tableMap):
|
||||
|
Loading…
Reference in New Issue
Block a user