mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
Initial passable version of possible values
This commit is contained in:
@ -536,6 +536,11 @@ public class QPicoCliImplementation
|
||||
queryInput.setSession(session);
|
||||
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);
|
||||
// queryInput.setShouldTranslatePossibleValues(true);
|
||||
|
||||
String primaryKeyValue = subParseResult.matchedPositionalValue(0, null);
|
||||
|
||||
if(primaryKeyValue == null)
|
||||
@ -581,6 +586,10 @@ public class QPicoCliImplementation
|
||||
queryInput.setLimit(subParseResult.matchedOptionValue("limit", null));
|
||||
queryInput.setFilter(generateQueryFilter(subParseResult));
|
||||
|
||||
// todo - think about these (e.g., based on user's requested output format?
|
||||
// queryInput.setShouldGenerateDisplayValues(true);
|
||||
// queryInput.setShouldTranslatePossibleValues(true);
|
||||
|
||||
QueryAction queryAction = new QueryAction();
|
||||
QueryOutput queryOutput = queryAction.execute(queryInput);
|
||||
commandLine.getOut().println(JsonUtils.toPrettyJson(queryOutput));
|
||||
|
Reference in New Issue
Block a user