php8.5
Home/ Manual/ sqlite3 / sqlite3stmt/ SQLite3Stmt::readOnly

SQLite3Stmt::readOnly

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.6, PHP 7, PHP 8)

Returns whether a statement is definitely read only

Description

SQLite3Stmt::readOnly(): bool

Returns whether a statement is definitely read only. A statement is considered read only, if it makes no direct changes to the content of the database file. Note that user defined SQL functions might change the database indirectly as a side effect.

Parameters Parameters

Return Values

Returns true if a statement is definitely read only, false otherwise.

Source: reference/sqlite3/sqlite3stmt/readonly.xml · from the official PHP manual (php/doc-en)