Hi Kevin,

I'm sorry for the delay. Currently, we have one example in the manual that
intercepts Param QueryParts:
http://www.jooq.org/doc/latest/manual/sql-building/queryparts/custom-sql-transformation/transformation-bind-value-abbreviation

In order to intercept a specific table reference, you could listen to that
table reference being visited, and then render an alternative SQL string
instead.

I suspect it'll be simpler to help you if you have any concrete questions,
though.

Best Regards,
Lukas

2016-01-03 20:52 GMT+01:00 <[email protected]>:

> I'm new to using the visitlistener to do AST.
> I was wondering if someone could give a simple example of replacing a
> table reference with a subquery.
>
> Even just changing
> Select * from Table jooq-test;
> to
> Select * from (Select * from jooq-test);
>
> I realize the above is pointless, it's just to see the mechanics in
> action, as a starting point.
>
> Thanks
> -Kevin
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to