I am creating simple SQLite database where multiple processes write to tables simultaneously. Here each process has its own table to be updated with INSERT statements.
Here is my sample code:
CSQlite:: OpenDB()
{
SQlite3_open("SSCOB.db",&db); //database is created/opened here
}
CSqlite::QueryDB()
{
db.sqlite3_exec(db,<insert query>,callback,(void*)data,&zErrMsg);
}
This class is accessed from multiple processes.
After processes got executed, when I verify the data, I found some of the rows(to be inserted are) missing from tables.
I am new to SQLite and may be missing some important connection to the DB. Please do help me to figure out the rootcause.