gnormal / gnorm

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

fix: passing the table DB name to the enum-generation steps #99

Closed wuleninja closed 6 years ago

wuleninja commented 6 years ago

Solves #98

[mysql]

This changes allows to use the table name while generating file names or struct names (in Go) for enums, which may help avoid name collisions (2 tables might have 2 different enums but with the same column name).

Also: updated the dependencies with dep ensure.

natefinch commented 6 years ago

Can you back out the changes to the vendor directory? I don't want 33,000 lines of changes with this very tiny fix :) We can update the vendor directory separately :)

wuleninja commented 6 years ago

This should be better now (if the tests pass)

natefinch commented 6 years ago

Thanks!

wuleninja commented 6 years ago

Thanks to you !