Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
78264b32
Unverified
Commit
78264b32
authored
2 years ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Added Query data
parent
fdf2a70b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.java-stubs/src/main/java/QueryDataApp.java
+18
-0
18 additions, 0 deletions
.java-stubs/src/main/java/QueryDataApp.java
.java-stubs/src/main/java/io/swagger/client/model/ExecuteStatementDto.java
+0
-1
0 additions, 1 deletion
...ain/java/io/swagger/client/model/ExecuteStatementDto.java
with
18 additions
and
1 deletion
.java-stubs/src/main/java/QueryDataApp.java
0 → 100644
+
18
−
0
View file @
78264b32
import
io.swagger.client.ApiException
;
import
io.swagger.client.api.QueryEndpointApi
;
import
io.swagger.client.model.*
;
public
class
QueryDataApp
{
public
static
void
main
(
String
[]
args
)
throws
ApiException
{
final
QueryEndpointApi
queryEndpointApi
=
new
QueryEndpointApi
();
/* execute query */
final
ExecuteStatementDto
executeStatementRequest
=
new
ExecuteStatementDto
();
executeStatementRequest
.
setStatement
(
"SELECT `uuid`, `point`, `value`, `unit`, `timestamp` FROM `power` WHERE `point` = \"A\""
);
final
QueryResultDto
response
=
queryEndpointApi
.
execute
(
executeStatementRequest
,
1L
,
1L
,
0L
,
10L
,
null
,
null
);
response
.
getId
();
response
.
getResult
();
response
.
getResultNumber
();
}
}
This diff is collapsed.
Click to expand it.
.java-stubs/src/main/java/io/swagger/client/model/ExecuteStatementDto.java
+
0
−
1
View file @
78264b32
...
...
@@ -25,7 +25,6 @@ import java.io.IOException;
* ExecuteStatementDto
*/
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.JavaClientCodegen"
,
date
=
"2023-02-12T12:27:08.557443+01:00[Europe/Vienna]"
)
public
class
ExecuteStatementDto
{
@SerializedName
(
"statement"
)
private
String
statement
=
null
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment