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

Config jOOQ schema globally #62

Closed
Sotatek-HuyLe3a opened this issue Nov 12, 2023 · 0 comments
Closed

Config jOOQ schema globally #62

Sotatek-HuyLe3a opened this issue Nov 12, 2023 · 0 comments
Assignees

Comments

@Sotatek-HuyLe3a
Copy link
Collaborator

Sotatek-HuyLe3a commented Nov 12, 2023

We are currently using setSchema({schema_name]).execute() to set the schema dynamically (SET SEARCH_PATH in PostgreSql). This approach, however, is not reliable and has led to occasional errors, specifically when the schema setting fails, resulting in next queries encountering issues.

It would be safer and more stable to render the schema for each query using withRenderSchema and withRenderMapping provided by jOOQ, and config this globally.

@Sotatek-HuyLe3a Sotatek-HuyLe3a self-assigned this Nov 12, 2023
satran004 added a commit that referenced this issue Nov 13, 2023
fix: #62 config jOOQ schema rendering
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

No branches or pull requests

1 participant