mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-290 Data format resultset
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ package io.cloudbeaver.service.sql;
|
||||
* Web data format
|
||||
*/
|
||||
public enum WebDataFormat {
|
||||
table,
|
||||
resultset,
|
||||
document,
|
||||
timeseries
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user