postgresqlconn.py 文件源码

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

项目:heroku-python-boilerplate 作者: chavli 项目源码 文件源码
def update_exact(self, table_name: str, conditions: dict, newvalues: dict) -> int:
        """ updates rows that match the given equality conditions with new values. both conditions
        and newvalues are dictionaries. kv pairs in conditions are translated into 'column = value'
        conditions and kv pairs in newvalues are used in the SET clause

        returns the number of rows updated
        """
        if not self.__conn:
            raise psycopg2.InterfaceError("null connection")

        try:
            pass
        except Exception as e:
            tb.print_exc()
            raise(e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号