> Is there any way to know the type of the current statement, > i.e.: select, > insert, delete, etc? > I would like to know it to retrieve the sqlite3_changes() > value after the > statement has finished to return that value to the user. > (almost) what you need :
** Return the number of columns in the result set returned by the compiled ** SQL statement. This routine returns 0 if pStmt is an SQL statement ** that does not return data (for example an UPDATE). */ int sqlite3_column_count(sqlite3_stmt *pStmt);