Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

busy_handler support for sqlite adapter

#1787

The sqlite adapter supports busy_timeout, but doesn't allow the setting of the more flexible busy_handler setting. This is useful to allow trying up to x number of times before bailing (amongst other things).

This allows usage such as:

{ :adapter => 'sqlite3', :busy_handler => Proc.new do |data, retries|

# Give up after 10 retries
if retries > 10
  0
else
  sleep(0.5)
  1
end

end }

Reported by Rob Holland · January 21st, 2009 @ 12:48 PM

State: stale
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to incomplete
    • Assigned user set to Michael Koziarski

    Probably needs some tests. Also you should rebase the patch into a single patch and upload as a .diff file.

    Thanks.

    March 12th, 2009 @ 03:27 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from activerecord, patch, sqlite_adapter to activerecord, bugmash, patch, sqlite_adapter

    August 5th, 2009 @ 03:28 PM

  3. Rizwan Reza
    Rizwan Reza
    • Tag changed from activerecord, bugmash, patch, sqlite_adapter to activerecord, patch, sqlite_adapter
    • State changed from incomplete to stale
    • Assigned user cleared.

    Please upload the updated patch. I'm closing it for now.

    January 20th, 2010 @ 11:09 AM