command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 15, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gm-cli
golang通过连接数据库生成表对应的model
使用
创建配置文件config.ini
[mysql]
link = "your_username:your_password@tcp(your_hostname:3306)/your_database"
prefix = "go_"
removePrefix = "t_,b_,xh_"
tables = "lxt_table1,lxt_table2"
执行命令
go run main.go
生成文件的文件在generated中
Documentation
¶
*
- @package gm_cli
- @file : main.go
- @author : LeiXiaoTian
- @contact : 1124378213@qq.com
- @time : 2024/5/15 16:14
*
Source Files
¶
Click to show internal directories.
Click to hide internal directories.