class Illuminate / Database / Connectors / SqlServerConnector
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

SqlServerConnector

Extends

Implements

Properties

protected

$options array

The PDO connection options.

Default: array

Methods

public

connect ( array $config ) : PDO

Establish a database connection.

Parameters

  • $config array
protected

configureIsolationLevel ( $connection , array $config ) : void

Set the connection transaction isolation level.

Parameters

  • $connection PDO
  • $config array
protected

getDsn ( array $config ) : string

Create a DSN string from a configuration.

Parameters

  • $config array
protected

prefersOdbc ( array $config ) : bool

Determine if the database configuration prefers ODBC.

Parameters

  • $config array
protected

getDblibDsn ( array $config ) : string

Get the DSN string for a DbLib connection.

Parameters

  • $config array
protected

getOdbcDsn ( array $config ) : string

Get the DSN string for an ODBC connection.

Parameters

  • $config array
protected

getSqlSrvDsn ( array $config ) : string

Get the DSN string for a SqlSrv connection.

Parameters

  • $config array
protected

buildConnectString ( $driver , array $arguments ) : string

Build a connection string from the given arguments.

Parameters

  • $driver string
  • $arguments array
protected

buildHostString ( array $config , $separator ) : string

Build a host string from the given configuration.

Parameters

  • $config array
  • $separator string
protected

getAvailableDrivers ( ) : array

Get the available PDO drivers.