# Functions
ConvertToSQLByMgoFields convert to mysql table ddl.
ConvertToSQLByPgFields convert to mysql table ddl.
GetMongodbTableInfo get table info from mongodb.
GetMysqlTableInfo 从 MySQL 数据库中获取表的创建信息.
GetPostgresqlTableInfo get table info from postgres.
GetSqliteTableInfo get table info from sqlite.
GetTableInfo 从 MySQL 数据库中获取表的创建信息 已废弃:请使用 GetMysqlTableInfo 替代.
MgoFieldToGoStruct convert to go struct.
ParseSQL generate different usage codes based on sql.
SetJSONTagCamelCase set json tag format to camel case.
SetJSONTagSnakeCase set json tag format to snake case.
UnMarshalTableInfo unmarshal the json data to TableInfo struct.
WithCharset 设置字符集.
WithCollation 设置排序规则.
WithColumnPrefix 设置列名前缀.
WithCustomTemplate 设置是否使用自定义扩展模板.
WithDBDriver 设置数据库驱动.
WithEmbed 设置是否嵌入 gorm.Model.
WithExtendedAPI 设置是否生成扩展 API.
WithFieldTypes 设置字段类型映射.
WithForceTableName 设置是否强制使用表名.
WithGormType 设置是否在 GORM 标签中写入类型.
WithJSONTag 设置是否生成 JSON 标签以及命名类型.
WithNoNullType 设置是否禁用 NULL 类型处理.
WithNullStyle 设置处理 NULL 值的风格.
WithPackage 设置生成代码的包名.
WithTablePrefix 设置表名前缀.
WithWebProto 设置是否生成包含路由路径和 Swagger 信息的 proto 文件.
# Constants
CodeTypeCrudInfo crud info json data.
CodeTypeDAO update fields code.
CodeTypeHandler handler request and respond code.
CodeTypeJSON json code.
CodeTypeModel model code.
CodeTypeProto proto file code.
CodeTypeService grpc service code.
CodeTypeTableInfo table info json data.
DBDriverMongodb mongodb driver.
DBDriverMysql mysql driver.
DBDriverPostgresql postgresql driver.
DBDriverSqlite sqlite driver.
DBDriverTidb tidb driver.
不处理 NULL 值.
使用指针来表示 NULL 值.
在 SQL 语句中使用 NULL.
ProtoSubStructKey proto sub struct key.
SubStructKey sub struct key.
TableName table name.
# Structs
Codes content.
CrudInfo crud info for cache, dao, handler, service, protobuf, error.
Field is the struct for column information.
MgoField mongo field.
PGField postgresql field.
PrimaryKey is the struct for primary key information, it used for generate CRUD code.
SqliteField sqlite field struct.
TableInfo is the struct for extend template.
# Type aliases
NullStyle 定义了处理 SQL 中 NULL 值的不同风格.
Option 是一个函数类型,用于设置选项.
No description provided by the author
SqliteFields sqlite fields.