报错 :
sqlalchemy.exc.ArgumentError: Mapper mapped class DataSet->DataSet could not assemble any primary key columns for mapped table 'DataSet'
解决办法:
在字段定义的下面增加一行:(各字段都放入list)
__mapper_args__ = {'primary_key':[dataSetName, FileName, FileName, FileTime, userName, password, ip, port, ]}
文章评论