Skip to main content
Run any Skill in Manus
with one click

sql-to-go-struct-and-dao

Stars6
Forks2
UpdatedApril 17, 2026 at 14:02

用 jen (github.com/LingoJack/model_infrax) 把 MySQL 建表 SQL 生成一整套 Go 代码(PO/entity、查询 DTO、视图 VO、DAO),支持 itea-go 与 gorm 两种框架。触发场景:用户提供 CREATE TABLE 语句要生成 Go model/DAO;用户说"根据这张表生成结构体/DAO/CRUD";用户想搭建 gorm 项目的数据访问层;`.model_infrax/` 目录存在或被提及。不要用在非 MySQL、非 gorm 体系的场景。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly