DbProfilerBase.py 文件源码

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

项目:Hecatoncheir 作者: snaga 项目源码 文件源码
def connect(self):
        if self.dbconn is None:
            log.info(_("Connecting the database."))
            try:
                self.dbdriver.connect()
            except DbProfilerException as e:
                log.error(_("Could not connect to the database."),
                          detail=e.source)
                log.error(_("Abort."))
                sys.exit(1)

            self.dbconn = self.dbdriver.conn
            log.info(_("Connected to the database."))
        return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号