CB-290 Data format resultset

This commit is contained in:
Serge Rider
2020-10-01 18:05:01 +03:00
parent 70c974d743
commit c806e32536
3 changed files with 3 additions and 3 deletions
@@ -20,7 +20,7 @@ package io.cloudbeaver.service.sql;
* Web data format
*/
public enum WebDataFormat {
table,
resultset,
document,
timeseries
}
@@ -43,7 +43,7 @@ public class WebSQLQueryResults {
WebSQLQueryResults(@NotNull WebSession webSession, @Nullable WebDataFormat dataFormat) {
this.webSession = webSession;
this.dataFormat = dataFormat == null ? WebDataFormat.table : dataFormat;
this.dataFormat = dataFormat == null ? WebDataFormat.resultset : dataFormat;
}
@Property
@@ -116,7 +116,7 @@ public class WebServiceBindingSQL extends WebServiceBindingBase<DBWServiceSQL> {
private WebDataFormat getDataFormat(DataFetchingEnvironment env) {
String dataFormat = env.getArgument("dataFormat");
return CommonUtils.valueOf(WebDataFormat.class, dataFormat, WebDataFormat.table);
return CommonUtils.valueOf(WebDataFormat.class, dataFormat, WebDataFormat.resultset);
}
public static WebSQLConfiguration getSQLConfiguration(WebSession webSession) {