PHP Conference Ehime 2026

SQLite3Stmt::setExplain

(PHP 8 >= 8.5.0)

SQLite3Stmt::setExplainChanges the explain mode of the statement

Описание

public function SQLite3Stmt::setExplain(int $mode): bool

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.

Список параметров

mode

One of SQLite3Stmt::EXPLAIN_MODE_PREPARED, SQLite3Stmt::EXPLAIN_MODE_EXPLAIN, or SQLite3Stmt::EXPLAIN_MODE_EXPLAIN_QUERY_PLAN.

Возвращаемые значения

Функция возвращает true, если выполнилась успешно, или false, если возникла ошибка.

Ошибки

A ValueError is thrown if mode is not one of the SQLite3Stmt::EXPLAIN_MODE_* constants.

Смотрите также

  • SQLite3Stmt::explain() - Returns the explain mode of the statement
  • SQLite3Stmt::execute() - Выполняет подготовленный запрос и возвращает объект с результирующим набором
Добавить

Примечания пользователей

Пользователи ещё не добавляли примечания для страницы
To Top