Closed kpeu3i closed 2 years ago
Hi @kpeu3i, thanks for reaching out,
ent
multi-schema (named database) feature is enabled by a feature flag: https://entgo.io/docs/feature-flags#schema-config
You can import all schemas separately, and rename the duplicates, then use this feature to interact with them.
Of course this is not an optimal solution, and I'll add to the roadmap a rename table feature or prefix schema name to table name (open for ideas).
Got it! Thanks for the great tool and your feedback!
In my DB I have a few schemas and when I run:
it generates Ent schemas only for the public schema. I know that I can specify
search_path=<schema_name>
in the DSN query. But again, I have tables with the same names but inside different schemas. How did it suppose to work?