*** DRAFT ***

About Sitemap Documentation Download License News Support |

## SQLite C Interface

## Determine If An SQL Statement Writes The Database

>     int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);

The sqlite3_stmt_readonly(X) interface returns true (non-zero) if the prepared statement X is SELECT statement and false (zero) if X is an INSERT, UPDATE, DELETE, CREATE, DROP, ANALYZE, ALTER, or REINDEX statement. If X is a NULL pointer or any other kind of statement, including but not limited to ATTACH, DETACH, COMMIT, ROLLBACK, RELEASE, SAVEPOINT, PRAGMA, or VACUUM the result of sqlite3_stmt_readonly(X) is undefined.

See also lists of Objects, Constants, and Functions.

*** DRAFT ***