Documentation

PDOConnection extends PDO
in package
implements ConnectionInterface

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>

Constants

DEFAULT_ATTRIBUTES

public mixed DEFAULT_ATTRIBUTES = [\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION]

Properties

Methods

__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
Return values
PDOConnection

parseAttributes()

private parseAttributes(array<string|int, mixed> $attributes) : array<string|int, mixed>
Parameters
$attributes : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results