Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator 代码生成器
func (*Generator) GenerateModelRegistry ¶ added in v4.3.7
generateModelRegistry 生成模型注册文件
type Options ¶
type Options struct { Driver string // 数据库驱动类型 (mysql/postgres) URL string // 数据库连接URL OutputDir string // 输出目录 PackageName string // 包名 Pattern string // 表名匹配模式 (PostgreSQL 可用 schema.table* 格式) Debug bool // 是否开启调试模式 TagStyle string // 标签风格 (gom/db) GenerateDB bool // 是否生成db标签 Prefix string // 表名前缀(生成时会去掉) Suffix string // 表名后缀(生成时会去掉) }
Options 代码生成选项
Click to show internal directories.
Click to hide internal directories.