mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Move skip & limit out of QueryInput, into QQueryFilter...
This commit is contained in:
@ -531,7 +531,6 @@ public class QPicoCliImplementation
|
||||
{
|
||||
QueryInput queryInput = new QueryInput();
|
||||
queryInput.setTableName(tableName);
|
||||
queryInput.setSkip(subParseResult.matchedOptionValue("skip", null));
|
||||
|
||||
// todo - think about these (e.g., based on user's requested output format?
|
||||
// queryInput.setShouldGenerateDisplayValues(true);
|
||||
@ -553,6 +552,8 @@ public class QPicoCliImplementation
|
||||
.withValues(List.of(primaryKeyValue)));
|
||||
queryInput.setFilter(filter);
|
||||
|
||||
filter.setSkip(subParseResult.matchedOptionValue("skip", null));
|
||||
|
||||
QueryAction queryAction = new QueryAction();
|
||||
QueryOutput queryOutput = queryAction.execute(queryInput);
|
||||
List<QRecord> records = queryOutput.getRecords();
|
||||
@ -577,9 +578,9 @@ public class QPicoCliImplementation
|
||||
{
|
||||
QueryInput queryInput = new QueryInput();
|
||||
queryInput.setTableName(tableName);
|
||||
queryInput.setSkip(subParseResult.matchedOptionValue("skip", null));
|
||||
queryInput.setLimit(subParseResult.matchedOptionValue("limit", null));
|
||||
queryInput.setFilter(generateQueryFilter(subParseResult));
|
||||
queryInput.getFilter().setSkip(subParseResult.matchedOptionValue("skip", null));
|
||||
queryInput.getFilter().setLimit(subParseResult.matchedOptionValue("limit", null));
|
||||
|
||||
// todo - think about these (e.g., based on user's requested output format?
|
||||
// queryInput.setShouldGenerateDisplayValues(true);
|
||||
|
Reference in New Issue
Block a user