Sqlite
extends PDO
Table of Contents
Constants
-
ATTR_EXTENDED_RESULT_CODES
= \PHP_VERSION_ID >= 70400 ? \PDO::SQLITE_ATTR_EXTENDED_RESULT_CODES : 1002
-
ATTR_OPEN_FLAGS
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_ATTR_OPEN_FLAGS : 1000
-
ATTR_READONLY_STATEMENT
= \PHP_VERSION_ID >= 70400 ? \PDO::SQLITE_ATTR_READONLY_STATEMENT : 1001
-
DETERMINISTIC
= \PDO::SQLITE_DETERMINISTIC
-
OPEN_CREATE
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_OPEN_CREATE : 4
-
OPEN_READONLY
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_OPEN_READONLY : 1
-
OPEN_READWRITE
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_OPEN_READWRITE : 2
Methods
-
__construct()
: mixed
-
connect()
: self
-
createAggregate()
: bool
-
createCollation()
: bool
-
createFunction()
: bool
ATTR_EXTENDED_RESULT_CODES
public
mixed
ATTR_EXTENDED_RESULT_CODES
= \PHP_VERSION_ID >= 70400 ? \PDO::SQLITE_ATTR_EXTENDED_RESULT_CODES : 1002
ATTR_OPEN_FLAGS
public
mixed
ATTR_OPEN_FLAGS
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_ATTR_OPEN_FLAGS : 1000
ATTR_READONLY_STATEMENT
public
mixed
ATTR_READONLY_STATEMENT
= \PHP_VERSION_ID >= 70400 ? \PDO::SQLITE_ATTR_READONLY_STATEMENT : 1001
DETERMINISTIC
public
mixed
DETERMINISTIC
= \PDO::SQLITE_DETERMINISTIC
OPEN_CREATE
public
mixed
OPEN_CREATE
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_OPEN_CREATE : 4
OPEN_READONLY
public
mixed
OPEN_READONLY
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_OPEN_READONLY : 1
OPEN_READWRITE
public
mixed
OPEN_READWRITE
= \PHP_VERSION_ID >= 70300 ? \PDO::SQLITE_OPEN_READWRITE : 2
__construct()
public
__construct(string $dsn[, string|null $username = null ][, string|null $password = null ][, array<string|int, mixed>|null $options = null ]) : mixed
Parameters
-
$dsn
: string
-
-
$username
: string|null
= null
-
-
$password
: string|null
= null
-
-
$options
: array<string|int, mixed>|null
= null
-
connect()
public
static connect(string $dsn[, string|null $username = null ][, string|null $password = null ][, array<string|int, mixed>|null $options = null ]) : self
Parameters
-
$dsn
: string
-
-
$username
: string|null
= null
-
-
$password
: string|null
= null
-
-
$options
: array<string|int, mixed>|null
= null
-
createAggregate()
public
createAggregate(string $name, callable $step, callable $finalize[, int $numArgs = -1 ]) : bool
Parameters
-
$name
: string
-
-
$step
: callable
-
-
$finalize
: callable
-
-
$numArgs
: int
= -1
-
createCollation()
public
createCollation(string $name, callable $callback) : bool
Parameters
-
$name
: string
-
-
$callback
: callable
-
createFunction()
public
createFunction(string $function_name, callable $callback[, int $num_args = -1 ][, int $flags = 0 ]) : bool
Parameters
-
$function_name
: string
-
-
$callback
: callable
-
-
$num_args
: int
= -1
-
-
$flags
: int
= 0
-