This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 从数据库生成模型类 sqlacodegen --outfile=models/stockdb.py "mysql+pymysql://root:mysqlpw@testdb:3306/stockdb?charset=utf8mb4" # 初始化 mkdir migrations alembic init migrations/stockdb # 修改 alembic.ini 脚本,以及 env.py 导入 models # 同步修改到数据库(读取 models/shared.py ) ./scripts/sync_stockdb.sh ### 对视图支持不好,主要是视图的字段没有类型,所以在导入导出时会出错,慎用!