Skip to content

Question - using this lib to generate SQL strings #1

@ORESoftware

Description

@ORESoftware

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions