gen icon indicating copy to clipboard operation
gen copied to clipboard

check database name when collect schemas

Open maetx777 opened this issue 2 years ago • 1 comments

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.

maetx777 avatar May 24 '22 08:05 maetx777

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

cdz620 avatar May 24 '22 09:05 cdz620