Okay. I've made my class with the CBLDatabase object a singleton, and have added an NSNotification whenever the database is opened or reopened, so the other objects can reacquire their live queries. It all seems to be working!
Jordan On Tuesday, January 26, 2016 at 3:20:43 PM UTC-6, Jens Alfke wrote: > > > On Jan 26, 2016, at 10:44 AM, Jordan Wood <[email protected] > <javascript:>> wrote: > > My app has a whole bunch of live queries which we keep to monitor our > data. I want to be able to close the database and open another, and be > able to replace the live queries with ones which refer to my new database. > Do live queries update when their database is closed? > > > No. Closing a Database invalidates all objects derived from that database > (Documents, Revisions, Views, Queries, Attachments, Replications, etc.) and > you should not call them anymore (or expect them to call you.) > > Similarly, closing a Manager invalidates all its Databases. > > —Jens > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/2f2cdd00-9d3b-4edf-bae0-1f2ff8d5ad0d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
