ccgus/fmdb — pull request #58 by electrobarn (2012-04-10 15:23:11+00:00)
Title: Safely switch database files (replacing the old with the new)

I have a case where I'm using a database and in a separate thread I'm downloading data and creating a updated database. Once the updated (new) database is ready, I need to safely switch from the old database to the new one, replacing the old database. The use of a queue in FMDB 2 gave me a concise way to do this.

Here are my changes and a test for changing a queue's database on the fly.