Registered database
internal | |
---|---|
package | salt\sql |
__construct(string $host, string $port, string $db, string $user, string $pass, string $charset, array $options)
string
Host name
string
Port number
string
database name
string
user name
string
password
string
charset of database
array
PDO options array
checkConnect(string $password) : boolean
string
Password
boolean
TRUE if password can be used for connectconnect(string $password = NULL
) : \PDO
string
the password to use for connect (NULL for using the registered password)
\salt\SaltException |
if connexion failed |
---|
\PDO
PDO instancegetDatabase() : string
string
database name$charset : string
$db : string
$host : string
$pass : string
$port : string
$user : string