postgresqlconn.py 文件源码

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

项目:heroku-python-boilerplate 作者: chavli 项目源码 文件源码
def __del__(self):
        """ implicitly called when garbage collections comes around to clean up objects.
        the database connection is returned to the pool """

        if self.__pool and self.__conn:
            self.__pool.putconn(self.__conn)
        self.__pool = None
        self.__conn = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号