Table of Contents
Interfaces
- ConnectionInterface
Constants
-
DEFAULT_ATTRIBUTES
= [\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION]
Properties
-
$name
: int|string
Methods
-
__construct()
: mixed
-
create()
: PDOConnection
-
name()
: int|string
-
parseAttributes()
: array<string|int, mixed>
DEFAULT_ATTRIBUTES
public
mixed
DEFAULT_ATTRIBUTES
= [\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION]
$name
private
int|string
$name
__construct()
public
__construct(int|string $name, string $dsn[, null|string $username = null ][, null|string $password = null ][, null|array<string|int, mixed> $options = null ]) : mixed
Parameters
-
$name
: int|string
-
-
$dsn
: string
-
-
$username
: null|string
= null
-
-
$password
: null|string
= null
-
-
$options
: null|array<string|int, mixed>
= null
-
create()
public
static create(int|string $name, string $dsn[, null|string $username = null ][, null|string $password = null ][, null|array<string|int, mixed> $options = null ]) : PDOConnection
Parameters
-
$name
: int|string
-
-
$dsn
: string
-
-
$username
: null|string
= null
-
-
$password
: null|string
= null
-
-
$options
: null|array<string|int, mixed>
= null
-
name()
public
name() : int|string
parseAttributes()
private
parseAttributes(array<string|int, mixed> $attributes) : array<string|int, mixed>
Parameters
-
$attributes
: array<string|int, mixed>
-
Return values
array<string|int, mixed>