# Functions
ConvertToSQLByMgoFields convert to mysql table ddl.
ConvertToSQLByPgFields convert to mysql table ddl.
GetMongodbTableInfo get table info from mongodb.
GetMysqlTableInfo get table info from mysql.
GetPostgresqlTableInfo get table info from postgres.
GetSqliteTableInfo get table info from sqlite.
GetTableInfo get table info from mysql Deprecated: replaced by 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 set charset.
WithCollation set collation.
WithColumnPrefix set column prefix.
WithCustomTemplate set custom template.
WithDBDriver set db driver.
WithEmbed is embed gorm.Model.
WithExtendedAPI set extended api.
WithFieldTypes set field types.
WithForceTableName set forceFloats.
WithGormType will write type in gorm tag.
WithJSONTag set json tag, 0 for underscore, other values for hump.
WithNoNullType set NoNullType.
WithNullStyle set NullType.
WithPackage set package name.
WithTablePrefix set table prefix.
WithWebProto set proto file type.
# 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.
nolint.
nolint.
nolint.
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 null type.
Option function.
No description provided by the author
SqliteFields sqlite fields.