SQL parsing for SQL-Builder

Is there an easy way to convert a SQL string, for example:

SELECT u.name, u.role 
FROM users 
WHERE user_id = ?

for any of the SQL collectors, such as JOOQ, QueryDsl, to get the ability to change the query - add joins, additional clauses "where", LIMIT-OFFSET?

+4
source share
2 answers

Another option, I used JSQLParser in the past for such a project. It was not very difficult to use.

+5
source

jOOQ Gudu Software, SQL 2 jOOQ, SQL SELECT, MySQL PostgreSQL, jOOQ .

+2

All Articles