class SqlServerConnector extends Connector implements ConnectorInterface (View source)
| DetectsLostConnections |
| protected array | $options | The 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 |
| PDO | connect(array $config)
Establish a database connection. | |
| void | configureIsolationLevel(PDO $connection, array $config)
Set the connection transaction isolation level. | |
| string | getDsn(array $config)
Create a DSN string from a configuration. | |
| bool | prefersOdbc(array $config)
Determine if the database configuration prefers ODBC. | |
| string | getDblibDsn(array $config)
Get the DSN string for a DbLib connection. | |
| string | getOdbcDsn(array $config)
Get the DSN string for an ODBC connection. | |
| string | getSqlSrvDsn(array $config)
Get the DSN string for a SqlSrv connection. | |
| string | buildConnectString(string $driver, array $arguments)
Build a connection string from the given arguments. | |
| string | buildHostString(array $config, string $separator)
Build a host string from the given configuration. | |
| array | getAvailableDrivers()
Get the available PDO drivers. |
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.
Establish a database connection.
Set the connection transaction isolation level.
https://learn.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql
Create a DSN string from a configuration.
Determine if the database configuration prefers ODBC.
Get the DSN string for a DbLib connection.
Get the DSN string for an ODBC connection.
Get the DSN string for a SqlSrv connection.
Build a connection string from the given arguments.
Build a host string from the given configuration.
Get the available PDO drivers.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/Connectors/SqlServerConnector.html