{"id":80165,"library":"with-advisory-lock","title":"WithAdvisoryLock","description":"Provides advisory locking for ActiveRecord to coordinate concurrent database operations.","status":"active","version":"7.5.0","language":"ruby","source_language":null,"source_url":"https://github.com/ClosureTree/with_advisory_lock","tags":["advisory","lock","activerecord","concurrency"],"install":[{"cmd":"gem install with_advisory_lock","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'with_advisory_lock', '~> 7.5.0'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"WithAdvisoryLock","correct":"require 'with_advisory_lock'"}],"quickstart":{"code":"require 'with_advisory_lock'\n\n# Acquire an advisory lock for a specific record\nUser.with_advisory_lock('my_lock') do\n  # Critical section\n  user.update!(name: 'new_name')\nend","lang":"ruby","description":"Use advisory locking to protect a critical section"},"warnings":[],"env_vars":null,"search_vec":"'activerecord':6,14 'advisori':3,12 'concurr':9,15 'coordin':8 'databas':10 'lock':4,13 'oper':11 'provid':2 'withadvisorylock':1","created_at":"2026-06-18T05:15:12.131346+00:00","updated_at":"2026-06-18T05:15:12.131346+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ClosureTree/with_advisory_lock","github":"https://github.com/ClosureTree/with_advisory_lock","docs":"http://www.rubydoc.info/gems/with_advisory_lock/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}