-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support named argumentes in sql v1 queries
- Loading branch information
1 parent
7d21b6c
commit a501553
Showing
5 changed files
with
201 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...cation/aam-backend-service/src/test/resources/database/documents/ReportCalculation:5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"_id": "ReportCalculation:5", | ||
"report": { | ||
"id": "ReportConfig:5" | ||
}, | ||
"args": { | ||
"from": "2024-01-01T00:00:00Z", | ||
"to": "2024-04-30T00:00:00Z" | ||
}, | ||
"status": "PENDING", | ||
"startDate": null, | ||
"endDate": null | ||
} |
11 changes: 11 additions & 0 deletions
11
application/aam-backend-service/src/test/resources/database/documents/ReportConfig:5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"_id": "ReportConfig:5", | ||
"title": "Version 1 with placeholder", | ||
"mode": "sql", | ||
"version": 1, | ||
"neededArgs": [ | ||
"from", | ||
"to" | ||
], | ||
"aggregationDefinition": "SELECT s.name as name, s.privateSchool as privateSchool FROM School as s WHERE s.date BETWEEN $from AND $to AND s.date BETWEEN $from AND $to" | ||
} |