rushteam / gosql

golang orm and sql builder

Repository from Github https://github.comrushteam/gosqlRepository from Github https://github.comrushteam/gosql

Table names & Model names

eco747 opened this issue · comments

By default, gosql add an option with the model name to the requests.
ie. if my model is UserModel, generated sql will be something like "... FROM 'usermodel' ..."

Is there a way to change that because it should be useful to connect to an existing database without renaming tables and being able to have a decent model name.

for exemple table name is 55xyh and some other softwares are working on that table ; model will be hard to create with such a name

regards
Etienne