db2struct

Converts a mysql table into a golang struct

GPL-3.0 License

Stars
546

Bot releases are visible (Hide)

db2struct - v1.0.2 Latest Release

Published by Shelnutt2 almost 4 years ago

Changes include:

  • Improve the code to make the order of the model's fields consistent with the order in the table ddl from @zhangxiaodel #39
db2struct - v1.0.1

Published by Shelnutt2 over 4 years ago

Changes include:

  • Add support for json datatypes #30 #31
  • Fix primary_key on JSON tags #34
db2struct - v1.0.0

Published by Shelnutt2 about 5 years ago

Release includes:

  • Support for MariaDB/MySQL
  • Writing output to file (Thanks to @xiangdong1987)
  • Primary Key support (Thanks to @kiwamunet)
  • Support for sql.Null, gorm and guregu nulls support
  • Go modules