public function Sqlsqlite::creds

8.0.x Sqlsqlite.php public Sqlsqlite::creds($hide_password = TRUE)
7.x Sqlsqlite.php public Sqlsqlite::creds($hide_password = TRUE)
master Sqlsqlite.php public Sqlsqlite::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

Overrides SqlBase::creds

File

lib/Drush/Sql/Sqlsqlite.php, line 12

Namespace

Drush\Sql

Class

Sqlsqlite

Code

public function creds($hide_password = TRUE) {
  // SQLite doesn't do user management, instead relying on the filesystem
  // for that. So the only info we really need is the path to the database
  // file, and not as a "--key=value" parameter.
  return ' ' . $this->db_spec['database'];
}