Database.py 文件源码

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

项目:spartacus 作者: wind39 项目源码 文件源码
def GetPID(self):
        try:
            if self.v_con is None:
                raise Spartacus.Database.Exception('This method should be called in the middle of Open() and Close() calls.')
            else:
                return self.v_con.get_backend_pid()
        except psycopg2.Error as exc:
            raise Spartacus.Database.Exception(str(exc))
        except Exception as exc:
            raise Spartacus.Database.Exception(str(exc))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号