-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quarkus Common Removal: Data API queryBuilder #1022
Conversation
src/main/java/io/stargate/sgv2/jsonapi/service/cql/ExpressionUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/cql/builder/Query.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/CountOperation.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/DBFilterBase.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/ExpressionBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/FindOperation.java
Outdated
Show resolved
Hide resolved
new QueryBuilder() | ||
.select() | ||
.column(columnsToAdd) | ||
.from(commandContext.namespace(), commandContext.collection()) | ||
.where(expression) | ||
.limit(maxSortReadLimit()) | ||
.build(); | ||
final SimpleStatement simpleStatement = SimpleStatement.newInstance(query.getCql()); | ||
queries.add(simpleStatement.setPositionalValues(collect)); | ||
queries.add(query.queryToStatement()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks like new way of building is much more compact from caller side. :)
(based on removal of codelines in this class)
src/test/java/io/stargate/sgv2/jsonapi/service/cql/builder/QueryBuilderTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM: added some minor notes.
Couple of notes
Checklist