Skip to content

Support [for update,for share] in SELECT DSL #902

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

Closed
luckygc opened this issue Jan 23, 2025 · 1 comment · Fixed by #904
Closed

Support [for update,for share] in SELECT DSL #902

luckygc opened this issue Jan 23, 2025 · 1 comment · Fixed by #904
Assignees

Comments

@luckygc
Copy link

luckygc commented Jan 23, 2025

select(MyTable.allColumns())
    .from(MyTable)
    .where(MyTable.id, isEqualTo(1))
    .forUpdate();

select(MyTable.allColumns())
    .from(MyTable)
    .where(MyTable.id, isEqualTo(1))
    .forUpdate()
    .skipLocked();

select(MyTable.allColumns())
    .from(MyTable)
    .where(MyTable.id, isEqualTo(1))
    .forShare();
@jeffgbutler
Copy link
Member

This is pretty easy to add. I will work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants