On Dec 20, 2015, at 8:18 PM, Constantine Kozak <[email protected]<mailto:[email protected]>> wrote:
So for the initial case everything works perfectly. When a user logs out, I call db.deleteDatabase() and close it. But then when a user logs back the database is not accessible unless the application is restarted. createQuery() method returns nils, attempts to insert something fails with What’s the code you use to re-create the database? You should be able to just call CBLManager.databaseNamed(“foo”). However, if you expect the logged-out user to log back in later, it would make more sense to keep their database around and avoid having to download the docs again. So don’t delete databases, just use a separate database for each user (for instance, with a name based on after their username, keeping in mind the limited character set available for database names.) —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/AF238B5B-B07C-4242-9B0C-59A68B2A1C4A%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
