cmd

command
v0.0.0-...-3f55bef Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 4 Imported by: 0

README

使用方法

  1. 直接运行
go run cli.go  --file model.go --dsn root:root@tcp\(localhost:3306\)/test?charset=utf8 --table user
  1. 编译运行
go build -o t2t.bin cli.go
./t2t.bin -file model.go -dsn xxx -table user
  1. 参数说明
-dsn            string 数据库dsn配置
-enableJsonTag  bool 是否添加json的tag
-file           string 保存路径
-packageName    string 包名
-prefix         string 表前缀
-realNameMethod string 结构体对应的表名
-table          string 要迁移的表
-tagKey         string tag的key

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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