class PostgresConnector extends Connector implements ConnectorInterface (View source)
| ParsesSearchPath | |
| 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. | from Connector |
| PDO | createPdoConnection(string $dsn, string $username, string $password, array $options)
Create a new PDO connection instance. | from Connector |
| PDO | tryAgainIfCausedByLostConnection(Throwable $e, string $dsn, string $username, string $password, array $options)
Handle an exception that occurred during connect execution. | from Connector |
| array | getOptions(array $config)
Get the PDO options based on the configuration. | from Connector |
| array | getDefaultOptions()
Get the default PDO connection options. | from Connector |
| void | setDefaultOptions(array $options)
Set the default PDO connection options. | from Connector |
| array | parseSearchPath(string|array|null $searchPath)
Parse the Postgres "search_path" configuration value into an array. | from ParsesSearchPath |
| PDO | connect(array $config)
Establish a database connection. | |
| void | configureIsolationLevel(PDO $connection, array $config)
Set the connection transaction isolation level. | |
| void | configureTimezone(PDO $connection, array $config)
Set the timezone on the connection. | |
| void | configureSearchPath(PDO $connection, array $config)
Set the "search_path" on the database connection. | |
| string | quoteSearchPath(array $searchPath)
Format the search path for the DSN. | |
| string | getDsn(array $config)
Create a DSN string from a configuration. | |
| string | addSslOptions(string $dsn, array $config)
Add the SSL options to the DSN. | |
| void | configureSynchronousCommit(PDO $connection, array $config)
Configure the synchronous_commit setting. |
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.
Parse the Postgres "search_path" configuration value into an array.
Establish a database connection.
Set the connection transaction isolation level.
Set the timezone on the connection.
Set the "search_path" on the database connection.
Format the search path for the DSN.
Create a DSN string from a configuration.
Add the SSL options to the DSN.
Configure the synchronous_commit setting.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/Connectors/PostgresConnector.html