Method | Description | |
---|---|---|
connect ( array $config ) : PDO | Establish a database connection. |
Method | Description | |
---|---|---|
configHasSocket ( array $config ) : boolean | Determine if the given configuration array has a UNIX socket value. | |
getDsn ( array $config ) : string | Create a DSN string from a configuration. | |
getHostDsn ( array $config ) : string | Get the DSN string for a host / port configuration. | |
getSocketDsn ( array $config ) : string | Get the DSN string for a socket configuration. | |
setModes ( PDO $connection, array $config ) : void | Set the modes for the connection. |
protected configHasSocket ( array $config ) : boolean | ||
$config | array | |
return | boolean |
protected getHostDsn ( array $config ) : string | ||
$config | array | |
return | string |
protected getSocketDsn ( array $config ) : string | ||
$config | array | |
return | string |