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.
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.
Get the configured lock timeout in seconds.
Details
in
DetectsLostConnections at line 16
protected bool
causedByLostConnection(Throwable $e)
Determine if the given exception was caused by a lost connection.
at line 34
PDO
createConnection(string $dsn, array $config, array $options)
Create a new PDO connection.
at line 61
protected PDO
createPdoConnection(string $dsn, string|null $username, string|null $password, array $options)
Create a new PDO connection instance.
at line 71
protected PDO
tryAgainIfCausedByLostConnection(Throwable $e, string $dsn, string|null $username, string|null $password, array $options)
Handle an exception that occurred during connect execution.
at line 83
array
getOptions(array $config)
Get the PDO options based on the configuration.
at line 93
array
getDefaultOptions()
Get the default PDO connection options.
at line 101
void
setDefaultOptions(array $options)
Set the default PDO connection options.
at line 109
protected int|null
getLockTimeout(array $config)
Get the configured lock timeout in seconds.