gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
488 stars 40 forks source link

.Indexes output should be consistent #82

Closed Etomyutikos closed 6 years ago

Etomyutikos commented 6 years ago

The .Indexes field on the Table struct in the templates has an inconsistent order. This is due, most likely, to using a map instead of a slice in database/drivers/*/parse.go. The database returns the rows in a consistent order.

It will also prevent regeneration of files from triggering diffs if there's no actual change in the data.