Improve performance of mysql generator
This change improves performance for generating mysql models for databases with large number of tables. In my local testing for a database with about 1000 tables and 140k columns, generation time was reduced from about 1h to less than one second.
This commit is contained in:
parent
61841dcfbe
commit
bffec36917
3 changed files with 16 additions and 41 deletions
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
// Column struct
|
||||
type Column struct {
|
||||
Name string
|
||||
Name string `sql:"primary_key"`
|
||||
IsPrimaryKey bool
|
||||
IsNullable bool
|
||||
IsGenerated bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue