Registry / database / with-advisory-lock

with-advisory-lock

JSON →
library7.5.0rbrubygemsunverified

Provides advisory locking for ActiveRecord to coordinate concurrent database operations.

gem install with_advisory_lock
INSTALL
IMPORT
SIG · WITH-ADVISORY-LOCK
W
with-advisory-lock
databaserubyv7.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WithAdvisoryLock
require 'with_advisory_lock'

Use advisory locking to protect a critical section

require 'with_advisory_lock' # Acquire an advisory lock for a specific record User.with_advisory_lock('my_lock') do # Critical section user.update!(name: 'new_name') end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
7.5.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
20
OpenAI (training)
1
Resources
with-advisory-lock — gem install with-advisory-lock · libregistry