1 Star 0 Fork 31

和风/FastAPI-Base

forked from FunnyWu/FastAPI-Base 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dev_db_2_model.py 309 Bytes
一键复制 编辑 原始数据 按行查看 历史
Funnywu 提交于 2020-11-27 10:00 . fix dev model tool
import os
from app.utils.sync_model import SyncModel
from app.config.db import db_config
# 同步Model:根据数据库中的表结构。
if __name__ == '__main__':
app_dir = os.path.dirname(os.path.abspath(__file__)) + os.sep + 'app'
SyncModel().sync(app_dir, db_config, is_use_base_model=True)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qq1098013518/fast-api-base.git
[email protected]:qq1098013518/fast-api-base.git
qq1098013518
fast-api-base
FastAPI-Base
master

搜索帮助