Skip to content

DBManager.h

BurnSoft edited this page Aug 13, 2017 · 1 revision

Simple Database operations using SQLITE

Name Description
initWithDatabaseFileName Initialize the database with the file name
loadDataFromDB Pass a STL statement to have the data loaded into an Array
executeQuery pass a sqlstatement to be executed, usually INSERT,UPDATE, DELETE, etc.
dbErrors Translate Errors from SQLITE integer to English
getDatabasePath Pass the Database Name to find the Path of the database
copyDbIfNeeded Pass the name of the database to see if we need to copy the database from the application directory to the documents directory
checkDB Pass the Database name to see if the database is in the path that we need it to be in
restoreFactoryDB Retore the Factory Database by deleting the database in the user docs and copying it back over.

Clone this wiki locally