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

Option to generate schemas as separate packages #2681

Open
sgtsquiggs opened this issue Sep 1, 2023 · 1 comment
Open

Option to generate schemas as separate packages #2681

sgtsquiggs opened this issue Sep 1, 2023 · 1 comment
Labels
📚 postgresql enhancement New feature or request

Comments

@sgtsquiggs
Copy link

What do you want to change?

I'd love to be able to generate several schemas at once and have them use separate go packages instead of prefixing the types:

Instead of models.SchemanameTablename generate schemaname.Tablename. This should alleviate any potential naming conflicts without having to prefix every type.

A check prior to generation could detect circular dependencies and fail with helpful error messaging instead.

What database engines need to be changed?

PostgreSQL, MySQL, SQLite

What programming language backends need to be changed?

Go

@sgtsquiggs sgtsquiggs added enhancement New feature or request triage New issues that hasn't been reviewed labels Sep 1, 2023
@kyleconroy kyleconroy removed the triage New issues that hasn't been reviewed label Oct 2, 2023
@kyleconroy
Copy link
Collaborator

While not the same, this is also related to #1941. Once we have the ability to split models into separate packages, we could then split out the schemas into separate packages as well.

@kyleconroy kyleconroy changed the title Feat: Option to generate schemas as separate packages Option to generate schemas as separate packages Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 postgresql enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants