Méthode | Description | |
---|---|---|
connect ( array $config ) : PDO | Establish a database connection. |
Méthode | 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 | |
Résultat | boolean |
protected getHostDsn ( array $config ) : string | ||
$config | array | |
Résultat | string |
protected getSocketDsn ( array $config ) : string | ||
$config | array | |
Résultat | string |