class Connector (View source)
DetectsLostConnections |
protected array | $options | The default PDO connection options. |
bool | causedByLostConnection(Throwable $e) Determine if the given exception was caused by a lost connection. | from DetectsLostConnections |
PDO | createConnection(string $dsn, array $config, array $options) Create a new PDO connection. | |
PDO | createPdoConnection(string $dsn, string $username, string $password, array $options) Create a new PDO connection instance. | |
bool | isPersistentConnection(array $options) Determine if the connection is persistent. | |
PDO | tryAgainIfCausedByLostConnection(Throwable $e, string $dsn, string $username, string $password, array $options) Handle an exception that occurred during connect execution. | |
array | getOptions(array $config) Get the PDO options based on the configuration. | |
array | getDefaultOptions() Get the default PDO connection options. | |
void | setDefaultOptions(array $options) Set the default PDO connection options. |
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Connectors/Connector.html