SQLite3Stmt::setExplain
(PHP 8 >= 8.5.0)
Changes the explain mode of the statement
Description
Changes the explain mode of the statement, so that it behaves as if its SQL was prefixed with EXPLAIN or EXPLAIN QUERY PLAN, or as an ordinary statement again.
Parameters
modeOne of
SQLite3Stmt::EXPLAIN_MODE_PREPARED,SQLite3Stmt::EXPLAIN_MODE_EXPLAIN, orSQLite3Stmt::EXPLAIN_MODE_EXPLAIN_QUERY_PLAN.
Return Values
Success
Errors/Exceptions
A ValueError is thrown if mode is not one of the SQLite3Stmt::EXPLAIN_MODE_* constants.
See Also
SQLite3Stmt::explainSQLite3Stmt::execute