Skip to content

Table names & Model names #13

@eco747

Description

@eco747

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions