Files
gormt/config.yml
谢小军 33d22fe2d4 new
gorm v2 support
2020-09-24 20:44:15 +08:00

32 lines
1.3 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)
singular_table : true # 单表模式:true:禁用表名复数,false:采用表名复数 参考:gorm.SingularTable
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 : false # 是否直接生成表名函数
is_null_to_point : false # 数据库默认 'DEFAULT NULL' 时设置结构为指针类型
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