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

check database name when collect schemas #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maetx777
Copy link

@maetx777 maetx777 commented May 24, 2022

When collecting table schemas, we must check selectel database name to avoid conflicts with multiple cloned databases.
For example, you can create database foo, clone it to foo_dev, set the same login/password to both databases and then try to generate structs, after code generation you can see conflicts.

@cdz620
Copy link

cdz620 commented May 24, 2022

better gen tool: https://github.com/go-gorm/gen

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

Successfully merging this pull request may close these issues.

2 participants