gm-cli

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 9 Imported by: 0

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

Overview

*

  • @package gm_cli
  • @file : main.go
  • @author : LeiXiaoTian
  • @contact : 1124378213@qq.com
  • @time : 2024/5/15 16:14 *

Jump to

Keyboard shortcuts

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