class
Illuminate
/
Database
/
Connectors
/
MySqlConnector
MySqlConnector
Extends
Implements
Methods
protected
configureIsolationLevel ( $connection , array $config ) : void
Set the connection transaction isolation level.
Parameters
- $connection PDO
- $config array
protected
configureEncoding ( $connection , array $config ) : void|PDO
Set the connection character set and collation.
Parameters
- $connection PDO
- $config array
protected
getCollation ( array $config ) : string
Get the collation for the configuration.
Parameters
- $config array
protected
configureTimezone ( $connection , array $config ) : void
Set the timezone on the connection.
Parameters
- $connection PDO
- $config array
protected
getDsn ( array $config ) : string
Create a DSN string from a configuration.
Parameters
- $config array
protected
hasSocket ( array $config ) : bool
Determine if the given configuration array has a UNIX socket value.
Parameters
- $config array
protected
getSocketDsn ( array $config ) : string
Get the DSN string for a socket configuration.
Parameters
- $config array
protected
getHostDsn ( array $config ) : string
Get the DSN string for a host / port configuration.
Parameters
- $config array
protected
setModes ( PDO $connection , array $config ) : void
Set the modes for the connection.
Parameters
- $connection PDO
- $config array