gnormal / gnorm

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

add sort func(s) to templates #79

Closed Etomyutikos closed 6 years ago

Etomyutikos commented 6 years ago

It would be handy to be able sort things like indexes and columns (if not already sorted). This could be achieved by adding the funcs sort package (sort .Table.Indexes.Names; range and index .Table.IndexesByName) or by adding special purpose funcs on top of slice types (Indexes, Columns, ...).

Etomyutikos commented 6 years ago

The problem this issue was trying to address is actually a bug in the indexes code in database/parse.go. Closing to open a real issue.