Registered database
| internal | |
|---|---|
| package | salt\sql |
__construct(string $host, string $port, string $db, string $user, string $pass, string $charset)
stringHost name
stringPort number
stringdatabase name
stringuser name
stringpassword
stringcharset of database
checkConnect(string $password) : boolean
stringPassword
booleanTRUE if password can be used for connectconnect(string $password = NULL) : \PDO
stringthe password to use for connect (NULL for using the registered password)
\Exception |
if connexion failed |
|---|
\PDOPDO instance$charset : string
$db : string
$host : string
$pass : string
$port : string
$user : string