Is there any method available for checking the sqlite DB connectivity without calling
sqlite3_open([writableDBPath UTF8String], &database) == SQLITE_OK
everytime. We end up in database connection error after 120 continuous clicks.
Please help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should call sqlite3_open just once. Then, if open operation was successful, store the database handle somewhere globally (i.e., in a class variable) and then just use that handle everytime you need to make a call to the database.