Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection Status of SQLite in IOS

Tags:

sqlite

ios

Is there a way one can check the connection status of a SQLite DB in IOS. I do not want to keep opening the db connection again and again. As a work around, I have put the SQLite DB object into a static variable and check if the object is NIL, else use the object as is.

Is there a simpler and cleaner way to do this

like image 655
Abishek Avatar asked Dec 03 '25 19:12

Abishek


1 Answers

A lot of SQLite Wrappers for iOS provide this functionality. Here is a library I wrote for handling SQLite connections which you can use to check the status of a connection: https://github.com/ziminji/objective-c-sql-query-builder

like image 112
Ziminji Avatar answered Dec 05 '25 09:12

Ziminji



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!