cycle / orm

PHP DataMapper, ORM
https://cycle-orm.dev
MIT License
1.24k stars 72 forks source link

Add method forUpdate #465

Closed msmakouz closed 8 months ago

msmakouz commented 9 months ago

What was changed

The new method forUpdate has been added to the repository.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (230dc9f) 91.49% compared to head (79f691b) 91.50%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 2.x #465 +/- ## ========================================= Coverage 91.49% 91.50% - Complexity 1813 1814 +1 ========================================= Files 115 115 Lines 4596 4600 +4 ========================================= + Hits 4205 4209 +4 Misses 391 391 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

hiscaler commented 6 months ago

What does this method do?

roxblnfk commented 6 months ago

adds FOR UPDATE when you build SELECT query https://www.cockroachlabs.com/blog/select-for-update/