Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table names & Model names #13

Open
eco747 opened this issue May 2, 2023 · 0 comments
Open

Table names & Model names #13

eco747 opened this issue May 2, 2023 · 0 comments

Comments

@eco747
Copy link

eco747 commented May 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant