sql-to-go-struct-and-dao
CommunityTurn MySQL tables into Go DAOs in one flow
AuthorLingoJack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates the repetitive, error-prone work of manually writing Go models, query/DTO types, view VO types, and DAO CRUD code from existing MySQL CREATE TABLE statements.
Core Features & Use Cases
- Generate full Go data access layers from SQL: Produces entity/PO, query DTO, view VO, and DAO CRUD code (with transactions and raw SQL) from your table schema.
- Support itea-go and gorm frameworks: Lets you choose the generated DAO style for either itea-go (BaseDao) or pure gorm in a consistent workflow.
- Schema-driven code consistency with DTO semantics: Applies conventions for DTO fields (Fuzzy/List/Start/End/OrderBy/Page) and the zero-value update semantics described in the references.
Quick Start
Tell the AI to generate Go code for your MySQL table by providing the CREATE TABLE SQL and configuring the output_path/package mapping under the .model_infrax directory for your project, then run jen to produce the model and DAO files.
Dependency Matrix
Required Modules
None requiredComponents
assets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sql-to-go-struct-and-dao Download link: https://github.com/LingoJack/jcli/archive/main.zip#sql-to-go-struct-and-dao Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.