ormtool

package module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 3 Imported by: 2

README

数据库表转换为golang 结构体

1. 获取方式

2. 配置说明

# 保存路径
SavePath:       "./models/test.go",
# 是否生成web json tag
IsGenJsonTag:   true,
# 是否生成在同一文件
IsGenInOneFile: true,
# 生成字段信息
GenDBInfoType:  base.CodeDBInfoGorm,
# 生成web json tag 类型,配置项IsGenJsonTag需为true
JsonTagType:    base.CodeJsonTag1

欢迎提交pr和issue

参考

https://github.com/gohouse/converter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMySQL

func GenerateMySQL(dbConf base.MysqlConfig, c base.Config)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL