コード例 #1
0
ファイル: MySQL.py プロジェクト: reinaldoc/dbsync
class MySQL: 

	def __init__(self, db_section, sync_section):
		self.config_file = ConigDAO()
		self.db_section = db_section
		self.sync_section = sync_section
		self.conn = MySqlDAO(self.config_file.get(db_section, "uri"), self.config_file.get(db_section, "username"), self.config_file.get(db_section, "username"))
	
	def load(self):
		self.conn.execute(self.config_file.get(db_section, "from query"))
コード例 #2
0
ファイル: MySQL.py プロジェクト: reinaldoc/dbsync
	def __init__(self, db_section, sync_section):
		self.config_file = ConigDAO()
		self.db_section = db_section
		self.sync_section = sync_section
		self.conn = MySqlDAO(self.config_file.get(db_section, "uri"), self.config_file.get(db_section, "username"), self.config_file.get(db_section, "username"))