-
Notifications
You must be signed in to change notification settings - Fork 2
Emap using MS Sql Server as a target (proof of concept) #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jeremyestein
wants to merge
21
commits into
develop
Choose a base branch
from
jeremy/mssql
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f005cc5
Enable MS SQL Server as Emap target and give ability to switch between
jeremyestein 203fcaf
Make cassandra settings configurable from global config
jeremyestein 6570104
Remove manual type "timestamp with time zone" on all Instant fields, as
jeremyestein ce33fdd
Default value FALSE needs to be 0 for the sake of SQL Server
jeremyestein 8c281c2
Remove explicit bytea type as it's the default for Postgres and break…
jeremyestein 4884ca3
Remove type which is incompatible with SQL Server
jeremyestein 4fba02b
Add and use our custom dialects
jeremyestein de9ca63
Change dialect in other containers that use the UDS
jeremyestein 8efe871
Instants must not specify manual type, for SQL Server compatibility
jeremyestein 666e0e2
SQL Server port needs to specified in global envs
jeremyestein 35d5263
Fix (most) emap-setup tests
jeremyestein 7b800a2
Add build args to the environment along with the global envs
jeremyestein 0a3eee4
hl7-reader needs to write to UDS too, so needs sql-server
jeremyestein e34c27e
Temporary workaround for missing Emap dialects in hl7-reader
jeremyestein 9001491
Use SQL Server 2019 for fake UDS because 2022 locks up on every query on
jeremyestein 631a2b6
Instead of specifying SQL type "text", which has the wrong meaning on
jeremyestein 1e47010
IDS is always Postgres so keep the literal "text" type!
jeremyestein 2fcea6f
Need to propagate @Lob annotations to the Audit tables too.
jeremyestein e38e2e9
Add emap-star to hl7-reader just so we can access the new Hibernate
jeremyestein b1d8ae9
Include example configs for both Postgres and SQL Server, and make it
jeremyestein bc31ddb
Merge branch 'develop' into jeremy/mssql
jeremyestein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 @@ | ||
| MSSQL_SA_PASSWORD= |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -73,7 +73,8 @@ relational database. We have chosen a relational structure for ease of use and e | |
| ``` | ||
| - Timestamps (date and times) are timezone aware (and automated testing enforces this) and named in the form `<something>Datetime` | ||
| - Dates should only have date information and be named in the form `<something>Date` | ||
| - `timestamp with time zone` is Postgres-specific so should not be specified manually. Hibernate does the right thing in this case. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 |
||
| ```java | ||
| @Column(columnDefinition = "timestamp with time zone") | ||
| private Instant admissionTime; | ||
| private Instant admissionDatetime; | ||
| private LocalDate addedDate; | ||
| ``` | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
semantics but I'd argue that this isn't a fake UDS, instead its a
mssql-staror justmssql-db