YapDatabase icon indicating copy to clipboard operation
YapDatabase copied to clipboard

Closing YapDatabase Connection

Open apsMSIDC opened this issue 6 years ago • 1 comments

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?

apsMSIDC avatar Dec 09 '19 04:12 apsMSIDC

Have a look at the YapDatabaseClosedNotificaiton.

lilhinx avatar Feb 19 '20 00:02 lilhinx