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)
postgresqlconn.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录