geopaparazzi / libjsqlite-spatialite-android

Project to create the libjsqlite.so used in geopaparazzi
75 stars 24 forks source link

How to check if jsqlite database is open ? #15

Closed spapapan closed 6 years ago

spapapan commented 7 years ago

I am trying to check if jsqlite is open or closed. For sqlite there is a method isOpen() that do the trick. Is there any similar method for jsqlite?

mj10777 commented 7 years ago

As far as I can see (after a very quick search) no.

When we close the connections we set it to NULL

spapapan commented 7 years ago

So if you call the method close() you can check if the database is closed by checking if the database is null?