nhachicha / SnappyDB

A key-value database for Android
1.78k stars 220 forks source link

What happens if you close the application without calling close() on an open SnappyDB? #64

Open StanleyFung opened 9 years ago

StanleyFung commented 9 years ago

@nhachicha in your example here https://github.com/theappbusiness/kc-android/blob/master/app/src/main/java/com/nabilhachicha/kc/data/DatabaseImpl.java , you do not close the db at any point.

There is no documentation saying that we must call close() but would like confirmation. What happens if we choose not to close() the DB? Does it close automatically if the application is terminated?

palmithor commented 8 years ago

This is something I am really concerned with as well!