Skip to content

Add Support for Reusing Where Clauses #152

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

Merged
merged 6 commits into from
Nov 13, 2019

Conversation

jeffgbutler
Copy link
Member

Count, Delete, Select, and Update statements all support a WHERE clause. With this PR, users can create a common where clause and reuse it in any statement.

For example, a where clause could be shared across a count and a select query. The count query could be used to return a total, and that value could be used to calculate paging queries.

@jeffgbutler jeffgbutler added this to the 1.1.4 milestone Nov 13, 2019
@coveralls
Copy link

coveralls commented Nov 13, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 44dcfaa on jeffgbutler:reusable-where into a771241 on mybatis:master.

@jeffgbutler jeffgbutler merged commit 35b4960 into mybatis:master Nov 13, 2019
@jeffgbutler
Copy link
Member Author

Resolves #150

@jeffgbutler jeffgbutler deleted the reusable-where branch November 13, 2019 01:42
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.

2 participants