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 locking methods to the query builder #6105

Closed
wants to merge 9 commits into from

Commits on Sep 28, 2023

  1. Add lockForUpdate() to the query builder

    This will allow us to create a query that will lock the rows
    returned until the end of the transaction. This mens we can
    update these rows with the guarantee that they have not been
    changed in the meantime by a competing process.
    Herberto Graca authored and hgraca committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    6677a94 View commit details
    Browse the repository at this point in the history
  2. Fix SQLServer getForUpdateSQL()

    It is currently returning an empty string,
    but it can be implemented with 'WITH (UPDLOCK, ROWLOCK)'.
    Herberto Graca authored and hgraca committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    53984b0 View commit details
    Browse the repository at this point in the history
  3. fixup!

    hgraca committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    991876d View commit details
    Browse the repository at this point in the history
  4. Add skipLocked() to the query builder

    This will allow us to create a query that will not
    wait for a lock to be released on rows, and instead
    return a row set excluding the rows locked by
    another transaction.
    Herberto Graca authored and hgraca committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    e77576f View commit details
    Browse the repository at this point in the history
  5. fixup!

    hgraca committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    d278c6b View commit details
    Browse the repository at this point in the history
  6. fixup!

    hgraca committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    02edccb View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. fixup!

    hgraca committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    acedc4d View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. DROP

    hgraca committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    3f04a41 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Enable functional test

    morozov committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    ef72694 View commit details
    Browse the repository at this point in the history