-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gorm Optional Struct tags #38
Comments
No. Theoretically it can support mysql by querying mysql schema table but actually it support databases in a common mannner ( |
@shrhawk-entertainer This has been updated with the latest release. Mysql db specifics are queried from the db to populate nullable, auto increment and primary key for gorm annotations |
@alexj212 that's excellent work but how to disable |
also @alexj212 can you add |
@shrhawk-entertainer Size tag has been added with meta data probe to get the length of varchar, char, and text fields. Also added options --generate-dao and --generate-proj |
@alexj212 will you support |
supported in v0.9 release coming shortly - functions such as now() are ignored, constant values are added to gorm tags. |
Does this package support gorm optional structs tags such as
Size, PRIMARY_KEY, AUTO_INCREMENT
?https://gorm.io/docs/models.html#Supported-Struct-tags
above struct was created with following command but no optional struct tags
gen --connstr "USER:PASSWORD@tcp(127.0.0.1:3306)/dbname" --database dbname --table batches --gorm --json
The text was updated successfully, but these errors were encountered: