zy7y / dfs-generate Goto Github PK
View Code? Open in Web Editor NEW从数据库逆向生成SQLModel、TortoiseORM模型、FastAPI 接口、Vue TS后台管理页,有效减少重复编码,👀https://www.bilibili.com/video/BV1Gp4y1d7P8/
License: MIT License
从数据库逆向生成SQLModel、TortoiseORM模型、FastAPI 接口、Vue TS后台管理页,有效减少重复编码,👀https://www.bilibili.com/video/BV1Gp4y1d7P8/
License: MIT License
使用create-dmg 打成dmg
rt,现在修改连接只能设置mysql数据库
提供桌面程序
model_dump
替换 dict
, 并排除未设置值的字段api.ts
请求头参数位置错误由 @296711867 发现
不声明表名的情况下,默认按照类名转换全小写当做表,表名🐍形命名时找不到表
ModuleNotFoundError: No module named 'types_map'
使用环境:
问题判断:
导包问题,因为项目结构,用PYcharm时,导致从根目录找寻types_map.py,所以无法找到'types_map'
解决方法:
导入方法采用相对导入:
在tools.py中换成from .types_map import TYPES
与此同时,conversion.py中,也可以换成from .tools import to_pascal, tran, to_snake
因为当我们环境中第三方库tools时,PYcharm2021.2.1也会报红提示,但不会影响项目运行
Rt
As title
rt
请问支持mysql 数据库吗 我使用了mysql数据库 数据库链接成功 表也出来了 , 当选择生成代码的时候 提供 表不存在 或链接错误
1.分页查询条件应排除主键,保留其他字段
2.模型中所有字段应非必填
下面这张表无法创建对应的代码。
pycharm环境和 打包好的exe文件都不能生成。麻烦大佬看看
mysql> CREATE TABLE students (
student_id VARCHAR(20) PRIMARY KEY, -- 学号
name VARCHAR(50) NOT NULL, -- 姓名
class VARCHAR(50) NOT NULL -- 班级
);```
目前是指定分支push是进行打包,调整为发布版本时打包
as title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.