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

Add Support for Various Locking Functions in Select Statements #904

Merged
merged 7 commits into from
Jan 24, 2025

Conversation

jeffgbutler
Copy link
Member

This PR adds support for "for update", "for share", "skip locked", etc. in select statements. This is not an abstraction of these concepts for different databases it simply adds known clauses to a generated SQL statement. You should always test to make sure these functions work in your target database. Currently, we support, and test, the options supported by PostgreSQL.

Resolves #902

@jeffgbutler jeffgbutler added this to the 2.0.0 milestone Jan 24, 2025
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 2a1b8da on jeffgbutler:select-enhancements
into a645046 on mybatis:master.

@jeffgbutler jeffgbutler merged commit 173ad6b into mybatis:master Jan 24, 2025
7 checks passed
@jeffgbutler jeffgbutler deleted the select-enhancements branch January 24, 2025 21:56
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.

Support [for update,for share] in SELECT DSL
2 participants