public function SqlBase::creds

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

Build a fragment connection parameters.

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

2 calls to SqlBase::creds()
SqlBase::connect in lib/Drush/Sql/SqlBase.php
A string for connecting to a database.
SqlBase::query in lib/Drush/Sql/SqlBase.php
Execute a SQL query.
5 methods override SqlBase::creds()
Sqlmysql::creds in lib/Drush/Sql/Sqlmysql.php
Build a fragment connection parameters.
Sqloracle::creds in lib/Drush/Sql/Sqloracle.php
Build a fragment connection parameters.
Sqlpgsql::creds in lib/Drush/Sql/Sqlpgsql.php
Build a fragment connection parameters.
Sqlsqlite::creds in lib/Drush/Sql/Sqlsqlite.php
Build a fragment connection parameters.
Sqlsqlsrv::creds in lib/Drush/Sql/Sqlsqlsrv.php
Build a fragment connection parameters.

File

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

Namespace

Drush\Sql

Class

SqlBase

Code

public function creds($hide_password = TRUE) {
}