Files
gormt/config.yml
2021-01-07 22:35:25 +08:00

32 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

base:
is_dev : false
out_dir : ./model # 输出目录
url_tag : json # web url tag(json,db(https://github.com/google/go-querystring))
language : # 语言(English,中 文)
db_tag : gorm # 数据库标签(gorm,db)
simple : false # 简单输出(默认gorm标签不输出)
is_out_sql : false # 是否输出 sql 原信息
is_out_func : true # 是否输出 快捷函数
is_web_tag : true # 是否打web标记(json标记前提条件)
is_web_tag_pk_hidden: true # web标记是否隐藏主键
is_foreign_key : true # 是否导出外键关联
is_gui : false # 是否ui模式显示
is_table_name : true # 是否直接生成表名,列名
is_null_to_point : false # 数据库默认 'DEFAULT NULL' 时设置结构为指针类型
table_prefix : "" # 表前缀, 如果有则使用, 没有留空
db_info:
host : 127.0.0.1 # type=1的时候host为yml文件全路径
port : 3306
username : root
password : 123456
database : matrix
type: 0 # 数据库类型:0:mysql , 1:sqlite , 2:mssql
# sqlite
# db_info:
# host : /Users/xxj/Downloads/caoguo # type=1的时候host为yml文件全路径
# port :
# username :
# password :
# database :
# type: 1 # 数据库类型:0:mysql , 1:sqlite , 2:mssql