public function Sqlsqlite::dumpCmd

8.0.x Sqlsqlite.php public Sqlsqlite::dumpCmd($table_selection)
7.x Sqlsqlite.php public Sqlsqlite::dumpCmd($table_selection)
master Sqlsqlite.php public Sqlsqlite::dumpCmd($table_selection)

Overrides SqlBase::dumpCmd

File

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

Namespace

Drush\Sql

Class

Sqlsqlite

Code

public function dumpCmd($table_selection) {
  // Dumping is usually not necessary in SQLite, since all database data
  // is stored in a single file which can be copied just
  // like any other file. But it still has a use in migration purposes and
  // building human-readable diffs and such, so let's do it anyway.
  $exec = $this->connect();
  // SQLite's dump command doesn't support many of the features of its
  // Postgres or MySQL equivalents. We may be able to fake some in the
  // future, but for now, let's just support simple dumps.
  $exec .= ' ".dump"';
  return $exec;
}