Skip to content

Question - using this lib to generate SQL strings #1

Open

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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