I am using Vert.x - I need to use an async db driver, but I was thinking of using this library to generate the query strings and then passing the strings to another lib to run the query.
So instead of doing this:
List<Customer> customers
= new QCustomer()
.name.istartsWith("rob")
.billingAddress.city.equalTo("Auckland")
.setMaxRows(10)
.orderBy()
.name.asc()
.findList();
I am looking to just grab the SQL string:
String query
= new QCustomer()
.name.istartsWith("rob")
.billingAddress.city.equalTo("Auckland")
.setMaxRows(10)
.orderBy()
.name.asc()
.getSQLStatement(); // not sure what call to use
is this possible? Looking for an example, thanks
I am using Vert.x - I need to use an async db driver, but I was thinking of using this library to generate the query strings and then passing the strings to another lib to run the query.
So instead of doing this:
I am looking to just grab the SQL string:
is this possible? Looking for an example, thanks