-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add Support to Upsert/Insert Ignore on PDB #389
Conversation
- Makes the implementation of DatabaseEngine optional, so it does not break compatibility with other library clients.
- Addresses comments: changes message in the default method implementation.
- Adds support for the following engines: MySQL, DB2. - Adds an exception to being thrown when a merge is not possible and use a `MappedEntity` without an `UPSERT` statement.
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.
Left a couple of comments.
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/DB2Engine.java
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/DB2Engine.java
Outdated
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/DB2Engine.java
Outdated
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/H2Engine.java
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/H2Engine.java
Outdated
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/MySqlEngine.java
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/MySqlEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/PostgreSqlEngine.java
Show resolved
Hide resolved
src/main/java/com/feedzai/commons/sql/abstraction/engine/impl/PostgreSqlEngine.java
Outdated
Show resolved
Hide resolved
- Addresses comments
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.
LGTM! but there are some unit tests failing, please review this change:
5ad2cb6#diff-bc62c5f9b00d089dc441b48954a5fee8fc5f051ef41115def9ac371e580a9285R519
some unit tests need first to be addressed
- Fix H2Engine variable initialization
- Adds `max-parallel` property to only run one JVM per run.
Great, great troubleshooting work Victor! 😃 Kudos! 💪 |
MappedEntity
without anUPSERT
statement.