我有以下脚本,试图创建3个表,如果他们还不存在于我的数据库中。 我使用MySQL作为数据库引擎。_run_ddl_visitor(
File "/Users/or/opt/anaconda3/lib/python3.8/site-packages/sqlalchemy/engine/base.pycould not find table 'openings' with wh
sqlalchemy.exc.ArgumentError: Mapper mapped class PartCar->partcar could not assemble any primary keycolumns for mapped table 'partcar'from sqlalchemyimport Column, Integer, String, ForeignKey
from s
我正在使用sqlalchemy文档来使用automap:来反映数据库表。当我没有指定一个模式,并且Postgres使用默认的public模式时,它会像预期的那样工作,并找到我的表的名称:>>> b = automap_base(bindreflect=True)['ads', 'spatial_ref_s