class Driver extends Driver

PDO MySQL database driver.

Constants

private DefaultCharset

Methods

__construct(string $dsn, string|null $username = null, string|null $password = null, array $options = [], string|null $charset = self::DefaultCharset, string|null $sqlmode = null)

No description

connect()

Establishes a connection to the database.

createEngine(Connection $connection)

Creates a engine instance for the specific database platform.

Details

at line 24
__construct(string $dsn, string|null $username = null, string|null $password = null, array $options = [], string|null $charset = self::DefaultCharset, string|null $sqlmode = null)

No description

Parameters

string $dsn
string|null $username
string|null $password
array $options
string|null $charset
string|null $sqlmode

at line 36
Connection connect()

Establishes a connection to the database.

Return Value

Connection

at line 49
Engine createEngine(Connection $connection)

Creates a engine instance for the specific database platform.

Parameters

Connection $connection

Return Value

Engine