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

Same table names cannot be generated across different schemes #1135

Open
auxpd opened this issue Apr 25, 2024 · 1 comment
Open

Same table names cannot be generated across different schemes #1135

auxpd opened this issue Apr 25, 2024 · 1 comment

Comments

@auxpd
Copy link

auxpd commented Apr 25, 2024

GORM Playground Link

go-gorm/playground#1

Description

If there is a table "A" in different schemes, the second structure file will not be generated because the generated file name is the same, resulting in the structure of the specific object does not exist

@auxpd
Copy link
Author

auxpd commented Apr 25, 2024

Can make QueryStructMeta's fileName a more unique value? Including my gorm multi-database query, there are often tables with the same name, this scenario can not generate files correctly.

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