scottburch/couch-ar — pull request #5 by pagameba (2012-02-03 14:00:55+00:00)
Title: Per-db initialization timeouts and callbacks

Scott,

I've reworked the initialization logic to keep the callback checks per db, I'm not sure if it is good mojo to add properties to 'db' or not but that seemed the simplest. If you don't like that I would redo it with a global domains object keyed by dbName and store them there.

I added the timeout with config option and default of 30 secs, I haven't tested it but it seems straight-forward.

Cheers

Paul