yl

command module
v0.0.0-...-4d6c173 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

README

yl 忆零团队工具包

gencolumns

根据struct的tag定义,生成_columns.go文件,避免拼SQL的时候出错。 更多说明

        -tag	定义字段时用的tag标记,默认是xorm。
		-path	需要解析的目录,默认是当前目录。注意:目录会一直往下递归。
		-m		名称映射模式。0:SnakeMapper ;1:SameMapper ;2:GonicMapper ;3:没有tag的字段忽略.默认:2
		-prefix	生成表名的时候希望增加的前缀,如果注释中制定了表名,前缀不生效。
		-debug	在终端显示生成的内容。

gendict

根据tag中的dict:"中文名 说明" 生成数据字典 flag同上,另外增加: -mysql 是否连接mysql。 -dsn 数据连接字符串

	-savefile	是否保存到文件
	-file		保存文件名称

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