-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
Custom table name? #164
Comments
Yes, it is possible:
I need to add an example. |
Thanks! Is it possible to specify the table name directly at query time? There are cases like sharding where one may have multiple tables with the same schema (model) but different names. |
I have slightly different approach implemented in https://github.com/go-pg/sharding using named params, e.g.
then in That way you can use named param in all queries (without ORM), e.g.
|
Is it possible to create a model but specify a custom table name? If so, how does one do so?
The text was updated successfully, but these errors were encountered: