jayanth KP wrote:
   But how do we read the current  synchronous value using C interface. Plz 
reply.

Jayanth,

Try this:

   sqlite3_stmt* s;
   sqlite3_prepare(db, "PRAGMA SYNCHRONOUS", -1, &s, NULL);
   sqlite3_step(s);
   int sync = sqlite3_column_int(s, 1);
   sqlite3_finalize(s);

   switch (sync) {
       case 0: // off
       case 1: // normal
       case 2: // full
   }


It simply executes the PRAGMA and collects the result.

HTH
Dennis Cote

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to