sqlite3-ruby busy_handler example?

R

ruby newbie

I'm having concurrency issues with sqlite3 and would like to implement a
busy_handler as the reasonable busy_timeout value I've set isn't always
sufficient.

I'm new to ruby and have tried creating both as a busy_handler method
and class, searching mailing archives, Jamis Buck's blogs, and the net
in general, but I'm apparently just missing it. The API doc for
sqlite3-ruby is at http://sqlite-ruby.rubyforge.org/sqlite3 - the method
signature is
busy_handler( data=nil ) {|data, retries| ...}
which confuses me right off the bat.

Can someone provide an example of a busy handler implementation and how
it should/can be invoked?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,537
Latest member
BellCorone

Latest Threads

Top