YapDatabase
YapDatabase copied to clipboard
Closing YapDatabase Connection
Hi,
Pardon me if I am asking a trivial question but this is something I am unable to figure out. As per my understanding, the YapDatabase instance is the one which just opens the database file. Then we use YapDatabaseConnection to open a Sqlite connection. How do we close this connection? Like in FMDB we have a dedicated method to close an open database connection.
In one of the issues I found a way to handle the closing by use of a notification but that happens when the YapDatabase instance is deallocated. Is there an exposed API to force close an open instance? Otherwize how will we accomplish this?
Have a look at the YapDatabaseClosedNotificaiton.