DBAdapters.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:CAAPR 作者: Stargrazer82301 项目源码 文件源码
def __init__(self, user, passwd, host=constants.CDefMySQLDBHost, port=constants.CDefMySQLDBPort,
                db=constants.CDefMySQLDBName, identify=None, resetDB=False, resetIdentify=True,
                frequency=constants.CDefMySQLStatsGenFreq, commit_freq=constants.CDefMySQLStatsCommitFreq):
      """ The creator of the DBSQLite Class """

      super(DBMySQLAdapter, self).__init__(frequency, identify)

      self.mysqldbmod = None
      self.connection = None
      self.resetDB = resetDB
      self.resetIdentify = resetIdentify
      self.db = db
      self.host = host
      self.port = port
      self.user = user
      self.passwd = passwd
      self.typeDict = {types.FloatType: "DOUBLE(14,6)"}
      self.cursorPool = None
      self.commitFreq = commit_freq
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号