(PHP 8 >= 8.4.0)
A PDO subclass representing a connection using the SQLite PDO driver.
This driver supports a dedicated SQL query parser for the SQLite dialect. It can handle the following:
public createAggregate( string $name, callable $step, callable $finalize, int $numArgs = -1 ): bool
public createCollation(string $name, callable $callback): bool
public createFunction( string $function_name, callable $callback, int $num_args = -1, int $flags = 0 ): bool
public loadExtension(string $name): void
public openBlob( string $table, string $column, int $rowid, ?string $dbname = "main", int $flags = Pdo\Sqlite::OPEN_READONLY ): resource|false
$dsn,$username = null,$password = null,$options = nullpublic PDO::beginTransaction(): bool
public PDO::commit(): bool
public static PDO::connect( string $dsn, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null ): static
public PDO::errorCode(): ?string
public PDO::errorInfo(): array
public PDO::exec(string $statement): int|false
public PDO::getAttribute(int $attribute): mixed
public static PDO::getAvailableDrivers(): array
public PDO::inTransaction(): bool
public PDO::lastInsertId(?string $name = null): string|false
public PDO::prepare(string $query, array $options = []): PDOStatement|false
public PDO::query(string $query, ?int $fetchMode = null): PDOStatement|false
public PDO::query(string $query, ?int $fetchMode = PDO::FETCH_COLUMN, int $colno): PDOStatement|false
public PDO::query( string $query, ?int $fetchMode = PDO::FETCH_CLASS, string $classname, array $constructorArgs ): PDOStatement|false
public PDO::query(string $query, ?int $fetchMode = PDO::FETCH_INTO, object $object): PDOStatement|false
public PDO::quote(string $string, int $type = PDO::PARAM_STR): string|false
public PDO::rollBack(): bool
public PDO::setAttribute(int $attribute, mixed $value): bool}
Pdo\Sqlite::DETERMINISTICPdo\Sqlite::OPEN_READONLYPdo\Sqlite::OPEN_READWRITEPdo\Sqlite::OPEN_CREATEPdo\Sqlite::ATTR_OPEN_FLAGSPdo\Sqlite::ATTR_READONLY_STATEMENTPdo\Sqlite::ATTR_EXTENDED_RESULT_CODES
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.pdo-sqlite.php