Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Added transacting ability. #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sushshring
Copy link

This allows select statements to run with the FOR SHARE and FOR UPDATE locking reads. Queries performed in this way ensure that no data is inserted/updated during the read, preventing race conditions.
To access this functionality, use

squel.select().transact(forUpdate: boolean)

@codecov
Copy link

codecov bot commented Jul 14, 2018

Codecov Report

Merging #361 into master will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #361     +/-   ##
=========================================
- Coverage   81.31%   81.22%   -0.1%     
=========================================
  Files           2        2             
  Lines        2863     2881     +18     
  Branches      635      639      +4     
=========================================
+ Hits         2328     2340     +12     
- Misses        535      541      +6
Impacted Files Coverage Δ
dist/squel-basic.js 93.27% <0%> (-0.12%) ⬇️
dist/squel.js 72.19% <0%> (-0.1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94049a0...4969e53. Read the comment docs.

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

Successfully merging this pull request may close these issues.

None yet

1 participant