-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Deprecate org.jooq.Clause #7258
Comments
Adding feedback as instructed in Context:
The code snippet you provided in your article fits perfectly for my needs. At the same time I also agree that the visit listener with the current Clauses is really hard to work with. Using an ExecutionListener(by tapping onto the context's query) proved much easier and works for the most part, except in certain "inline" situations where the query itself doesn't seem to be mutable. Take CTEs for example: WITH
cte1 AS (SELECT a, b FROM table1)
SELECT a, b FROM cte1 While I was able to access the inner query, I was unable to mutate it to become I would be happy to provide you the ExecutionListener approach, if you wish. |
Agh, I meant to update that article a long time ago. Row level security are a feature in jOOQ now, since jOOQ 3.19: |
Ah, it's already mentioned in the middle, but not highlighted... I'll add it again at the top. |
The
VisitListener
SPI is rather hard to implement correctly. One reason for this is thatorg.jooq.Clause
is:QueryPart
implementations (e.g. are there wrappers around expressions? How many? Etc.)There has been a pending feature request to replace the
Clause
by actualQueryPart
implementations: #3654, which is probably also not a good idea.With this deprecation, we'll get feedback from users actually using the
Clause
, and we can better assess what to implement (if anything at all) in the future. The discussion will be open, and it might even include deprecating and removing theVisitListener
SPI entirely. Discussion here: #7642The text was updated successfully, but these errors were encountered: