public function SqlBase::connect

8.0.x SqlBase.php public SqlBase::connect($hide_password = TRUE)
7.x SqlBase.php public SqlBase::connect($hide_password = TRUE)
master SqlBase.php public SqlBase::connect($hide_password = TRUE)

A string for connecting to a database.

Parameters

bool $hide_password: If TRUE, DBMS should try to hide password from process list. On mysql, that means using --defaults-extra-file to supply the user+password.

Return value

string

1 call to SqlBase::connect()

File

lib/Drush/Sql/SqlBase.php, line 47

Namespace

Drush\Sql

Class

SqlBase

Code

public function connect($hide_password = TRUE) {
  return trim($this->command() . ' ' . $this->creds($hide_password) . ' ' . drush_get_option('extra', $this->query_extra));
}