public function Sqloracle::listTables

8.0.x Sqloracle.php public Sqloracle::listTables()
7.x Sqloracle.php public Sqloracle::listTables()
master Sqloracle.php public Sqloracle::listTables()

Extract the name of all existing tables in the given database.

Return value

array|null An array of table names which exist in the current database.

Overrides SqlBase::listTables

File

lib/Drush/Sql/Sqloracle.php, line 62

Namespace

Drush\Sql

Class

Sqloracle

Code

public function listTables() {
  $return = $this->query("SELECT TABLE_NAME FROM USER_TABLES WHERE TABLE_NAME NOT IN ('BLOBS','LONG_IDENTIFIERS')");
  $tables = drush_shell_exec_output();
  if (!empty($tables)) {
    // Shift off the header of the column of data returned.
    array_shift($tables);
    return $tables;
  }
}