mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

available since 3.41.0 we can reprepare a statement in either explain, explain query plan or the usual prepared mode. close GH-18829
90 lines
2.4 KiB
PHP
90 lines
2.4 KiB
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
namespace Pdo;
|
|
|
|
/**
|
|
* @strict-properties
|
|
* @not-serializable
|
|
*/
|
|
class Sqlite extends \PDO
|
|
{
|
|
#ifdef SQLITE_DETERMINISTIC
|
|
/** @cvalue SQLITE_DETERMINISTIC */
|
|
public const int DETERMINISTIC = UNKNOWN;
|
|
#endif
|
|
|
|
/** @cvalue SQLITE_OPEN_READONLY */
|
|
public const int OPEN_READONLY = UNKNOWN;
|
|
|
|
/** @cvalue SQLITE_OPEN_READWRITE */
|
|
public const int OPEN_READWRITE = UNKNOWN;
|
|
|
|
/** @cvalue SQLITE_OPEN_CREATE */
|
|
public const int OPEN_CREATE = UNKNOWN;
|
|
|
|
/** @cvalue PDO_SQLITE_ATTR_OPEN_FLAGS */
|
|
public const int ATTR_OPEN_FLAGS = UNKNOWN;
|
|
|
|
/** @cvalue PDO_SQLITE_ATTR_READONLY_STATEMENT */
|
|
public const int ATTR_READONLY_STATEMENT = UNKNOWN;
|
|
|
|
/** @cvalue PDO_SQLITE_ATTR_EXTENDED_RESULT_CODES */
|
|
public const int ATTR_EXTENDED_RESULT_CODES = UNKNOWN;
|
|
|
|
/** @cvalue PDO_SQLITE_ATTR_BUSY_STATEMENT */
|
|
public const int ATTR_BUSY_STATEMENT = UNKNOWN;
|
|
|
|
/** @cvalue PDO_SQLITE_ATTR_EXPLAIN_STATEMENT */
|
|
public const int ATTR_EXPLAIN_STATEMENT = UNKNOWN;
|
|
|
|
#if SQLITE_VERSION_NUMBER >= 3041000
|
|
public const int EXPLAIN_MODE_PREPARED = 0;
|
|
public const int EXPLAIN_MODE_EXPLAIN = 1;
|
|
public const int EXPLAIN_MODE_EXPLAIN_QUERY_PLAN = 2;
|
|
#endif
|
|
|
|
/** @cvalue SQLITE_OK */
|
|
public const int OK = UNKNOWN;
|
|
|
|
/* Constants for authorizer return */
|
|
|
|
/** @cvalue SQLITE_DENY */
|
|
public const int DENY = UNKNOWN;
|
|
/** @cvalue SQLITE_IGNORE */
|
|
public const int IGNORE = UNKNOWN;
|
|
|
|
// Registers an aggregating User Defined Function for use in SQL statements
|
|
public function createAggregate(
|
|
string $name,
|
|
callable $step,
|
|
callable $finalize,
|
|
int $numArgs = -1
|
|
): bool {}
|
|
|
|
// Registers a User Defined Function for use as a collating function in SQL statements
|
|
public function createCollation(string $name, callable $callback): bool {}
|
|
|
|
public function createFunction(
|
|
string $function_name,
|
|
callable $callback,
|
|
int $num_args = -1,
|
|
int $flags = 0
|
|
): bool {}
|
|
|
|
#ifndef PDO_SQLITE_OMIT_LOAD_EXTENSION
|
|
public function loadExtension(string $name): void {}
|
|
#endif
|
|
|
|
/** @return resource|false */
|
|
public function openBlob(
|
|
string $table,
|
|
string $column,
|
|
int $rowid,
|
|
?string $dbname = "main",
|
|
int $flags = \Pdo\Sqlite::OPEN_READONLY
|
|
) {}
|
|
|
|
public function setAuthorizer(?callable $callback): void {}
|
|
}
|