fraenky8 / tables-to-go

convert your database tables to structs easily
MIT License
233 stars 42 forks source link

check for invalid column and table names #21

Closed ronniegane closed 5 years ago

ronniegane commented 5 years ago

resolves #18 This now does the following:

ronniegane commented 5 years ago

I pulled the column formatting out into a function that is easy to unit test: 719aecfbdaa7 That seemed simpler than having to set up tables and DBs. The test cases show how the columns will be formatted, @fraenky8 can you check that those have the desired behaviour for original and camelcase?

Do you want me to rename table names that start with numbers as well? At the moment it's only renaming columns.