Skip to content
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

Bump mybatis-dynamic-sql from 1.3.1 to 1.4.0 #14

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 4, 2022

Bumps mybatis-dynamic-sql from 1.3.1 to 1.4.0.

Release notes

Sourced from mybatis-dynamic-sql's releases.

MyBatis Dynamic SQL Release 1.4.0

This release includes the following enhancements:

  1. Add support for arbitrary grouping of conditions in a where clause, and "not" conditions. Any where clause should be possible with this change.
  2. Improvements to table alias calculation that will make sub queries in where clauses easier
  3. Removal of some deprecated code
  4. Major update to Kotlin DSL:
    • The where clause DSL is rewritten and more closely matches native SQL
    • Kotlin where clauses also support arbitrary grouping and "not" conditions
    • All insert statements now have native Kotlin builders
    • Many other small improvements using Kotlin DSL building functions

With this release, the Kotlin DSL is very close to native SQL. It is awesome - give it a try!

All artifacts are available in Maven central under these coordinates:

<dependency>
  <groupId>org.mybatis.dynamic-sql</groupId>
  <artifactId>mybatis-dynamic-sql</artifactId>
  <version>1.4.0</version>
</dependency>
Changelog

Sourced from mybatis-dynamic-sql's changelog.

Release 1.4.0 - March 3, 2022

The release includes new functionality in the Where Clause DSL to support arbitrary grouping of conditions, and also use of a "not" condition. It should now be possible to write any type of where clause.

Additionally, there were significant updates to the Kotlin DSL - both to support the new functionality in the where clause, and significant updates to insert statements. There were also many minor updates in Kotlin to make more use of Kotlin language features like infix functions and operator overloads.

GitHub milestone: https://github.com/mybatis/mybatis-dynamic-sql/issues?q=milestone%3A1.4.0+

  1. Added support for arbitrary placement of nested criteria. For example, it is now possible to write a where clause like this: where (a < 5 and B = 3) and ((C = 4 or D = 5) and E = 6). Previously we did not support the grouping of criteria at the beginning of a where clause or the beginning of an and/or condition. Adding this support required significant refactoring, but that should be transparent to most users. (#434)
  2. Remove deprecated "when" and "then" methods on all conditions. The methods have been replaced by more appropriately named "filter" and "map" methods that function as expected for method chaining. (#435)
  3. Added support for a "not" criteria grouping on a where clause. It is now possible to write a where clause like where (a < 5 and B = 3) and (not (C = 4 or D = 5) and E = 6). With this enhancement (and the enhancement for arbitrary grouping) it should now be possible to write virtually any where clause imaginable. (#438)
  4. Major update to the Kotlin where clause DSL. Where clauses now support the "group" and "not" features from above. In addition, the where clause DSL has been fully updated to make it feel more like natural SQL. The previous version of the where clause DSL would have yielded almost unreadable code had the "group" and "not" functions been added. This update is better all around and yields a DSL that is very similar to native SQL. The new DSL includes many Kotlin DSL construction features including infix functions, operator overloads, and functions with receivers. We believe it will be well worth the effort to migrate to the new DSL. The prior where clause DSL remains in the library for now, but is deprecated. It will be removed in version 1.5.0 of the library. Documentation for the new DSL is here: https://github.com/mybatis/mybatis-dynamic-sql/blob/master/src/site/markdown/docs/kotlinWhereClauses.md (#442)
  5. General cleanup of the Kotlin DSL. The Kotlin DSL functions are now mostly Unit functions. This should have no impact on most users and is source code compatible with prior versions of the library when the library was used as described in the documentation. This change greatly simplifies the type hierarchy of the Kotlin builders. (#446)
  6. Minor update the Kotlin join DSL to make it closer to natural SQL. The existing join methods are deprecated and will be removed in version 1.5.0. (#447)
  7. Updated most of the Kotlin insert DSL functions to be more like natural SQL. The main difference is that for insert, insertBatch, and insertMultiple, the "into" function is moved inside the completer lambda. The old methods are now deprecated and will be removed in version 1.5.0 of the library. This also allowed us to make some insert DSL methods into infix functions. (#452)
  8. Updated the where clause to expose table aliases specified in an outer query to sub queries in the where clause (either an "exists" clause, or a sub query to column comparison condition) This makes it easier to use these types of sub queries without having to re-specify the aliases for columns from the outer query. (#459)
Commits
  • e74d13a [maven-release-plugin] prepare release mybatis-dynamic-sql-1.4.0
  • 8a916a9 Update release date
  • 369e2a3 Merge pull request #460 from jeffgbutler/better-column-qualifier
  • a3a9cf7 [Kotlin] Add an operator overload to apply a qualifier to a column.
  • 7e90820 Merge pull request #459 from jeffgbutler/gh-437
  • 25af53f Add PR detail to CHANGELOG.md
  • db4ccea Documentation
  • 17a17ec Expose aliases to all sub queries in where clauses
  • de1e4d8 Fix a data error
  • 3b25fc2 Use a builder per coding standards
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mybatis-dynamic-sql](https://github.com/mybatis/mybatis-dynamic-sql) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/mybatis/mybatis-dynamic-sql/releases)
- [Changelog](https://github.com/mybatis/mybatis-dynamic-sql/blob/master/CHANGELOG.md)
- [Commits](mybatis/mybatis-dynamic-sql@mybatis-dynamic-sql-1.3.1...mybatis-dynamic-sql-1.4.0)

---
updated-dependencies:
- dependency-name: org.mybatis.dynamic-sql:mybatis-dynamic-sql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 4, 2022

The following labels could not be found: dependencies.

@coveralls
Copy link

Pull Request Test Coverage Report for Build #30

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.237%

Totals Coverage Status
Change from base Build #28: 0.0%
Covered Lines: 193
Relevant Lines: 207

💛 - Coveralls

@hazendaz hazendaz self-assigned this Mar 5, 2022
@hazendaz hazendaz merged commit fe80649 into master Mar 5, 2022
@dependabot dependabot bot deleted the dependabot/maven/org.mybatis.dynamic-sql-mybatis-dynamic-sql-1.4.0 branch March 5, 2022 15:14
@kazuki43zoo kazuki43zoo added this to the 0.1.0 milestone Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants