Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>MySQL to ORMNew to Visual Studio Code? Get it now.
MySQL to ORM

MySQL to ORM

chenyihui

|
246 installs
| (1) | Free
Convert MySQL DDL to GORM/XORM struct
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MySQL to ORM

将 MySQL DDL 语句转换为 Go 的 ORM 结构体定义。

特性

  • 支持 GORM 和 XORM
  • 自动识别字段类型
  • 保留字段注释
  • 支持主键和自增标识
  • 自动格式化生成的代码

使用方法

  1. 复制 MySQL DDL 语句
  2. 粘贴到 .go 文件中
  3. 选择要生成的 ORM 类型(GORM/XORM)
  4. 自动生成对应的 Go 结构体

示例

...

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft