SQL to Gorm

Convert MySQL to Go Statement

This tool converts create statement of mysql into Go type definition, and other SQL expressions will be ignored. Paste create statement on the left and the equivalent Go type will be generated to the right, which you can paste into your program. The script has to make some assumptions, so double-check the output!

Example SQL

SQL Go