格式化与代码
SQL DDL → Prisma / Drizzle 模型
Reverse-engineer ORM models from an existing schema.
Runs in your browser
SQL DDL · source
lines: 14chars: 331size: 331 B
Prisma schema · result
lines: 14chars: 254size: 254 B
live
编辑注
Understanding · CREATE TABLE into Prisma, SQLAlchemy, ActiveRecord.
本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。
常见问题
Quick answers.
›Does this tool support all SQL dialects?
It currently supports PostgreSQL, MySQL, and SQLite syntax for standard DDL scripts. Complex database-specific extensions might require manual adjustment.
›Is my database schema sent to a server?
No. The conversion logic is executed entirely in your browser using local parsing scripts. Your schema and table names never leave your device.
›Which ORM versions are supported?
The tool generates schema syntax compatible with the latest versions of Prisma and Drizzle ORM using TypeScript types.
›What happens to foreign keys and relationships?
The parser identifies `FOREIGN KEY` constraints and map them to their corresponding relation types in Prisma or Drizzle. Ensure your DDL includes these constraints for the most accurate output.
大家也在搜索
相关工具
More in this room.
- OpenAPI / Swagger 验证器根据规范规则验证 OpenAPI 3 规范。
- OpenAPI 3.1 YAML ⇄ JSON在 YAML 和 JSON 之间转换 OpenAPI 规范。
- OpenAPI → TypeScript Axios 客户端从任何 OpenAPI 规范生成类型化的 Axios 客户端。
- OpenAPI → React Query Hooks为每个端点自动生成 useQuery + useMutation hook。
- OpenAPI → Postman Collection从任何 OpenAPI 规范生成 Postman v2.1 collection。
- GraphQL SDL ⇄ TypeScript 类型遍历 schema,发出类型化接口,然后反向操作。