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

Inject DB name into model table #449

Open
chaslain opened this issue Jan 30, 2025 · 1 comment
Open

Inject DB name into model table #449

chaslain opened this issue Jan 30, 2025 · 1 comment

Comments

@chaslain
Copy link

chaslain commented Jan 30, 2025

The generation feature hard codes the schema name. Suppose I have many schemas with identical data definitions in which I'd like to use the same structs for. Or, suppose the name of my schema is config based.

Perhaps allowing injection of an existing sql.DB somewhere in the process could permit this, with a different generation flag to permit this.

@trevlt
Copy link

trevlt commented Jan 31, 2025

Generator customization might be what you are looking for - https://github.com/go-jet/jet/wiki/Generator#generator-customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants