Connector
class Connector
Traits
Properties
protected array | $options | The default PDO connection options. |
Methods
Determine if the given exception was caused by a lost connection.
Create a new PDO connection.
Create a new PDO connection instance.
Determine if the connection is persistent.
Handle an exception that occurred during connect execution.
Get the PDO options based on the configuration.
Get the default PDO connection options.
Set the default PDO connection options.
Details
in
DetectsLostConnections at line 16
protected bool
causedByLostConnection(Exception $e)
Determine if the given exception was caused by a lost connection.
at line 36
PDO
createConnection(string $dsn, array $config, array $options)
Create a new PDO connection.
at line 62
protected PDO
createPdoConnection(string $dsn, string $username, string $password, array $options)
Create a new PDO connection instance.
at line 77
protected bool
isPersistentConnection(array $options)
Determine if the connection is persistent.
at line 95
protected PDO
tryAgainIfCausedByLostConnection(Exception $e, string $dsn, string $username, string $password, array $options)
Handle an exception that occurred during connect execution.
at line 110
array
getOptions(array $config)
Get the PDO options based on the configuration.
at line 122
array
getDefaultOptions()
Get the default PDO connection options.
at line 133
void
setDefaultOptions(array $options)
Set the default PDO connection options.