function drush_sql_get_table_selection

8.0.x sql.drush.inc drush_sql_get_table_selection()
6.x sql.drush.inc drush_sql_get_table_selection()
7.x sql.drush.inc drush_sql_get_table_selection()
3.x sql.drush.inc drush_sql_get_table_selection()
4.x sql.drush.inc drush_sql_get_table_selection()
5.x sql.drush.inc drush_sql_get_table_selection()
master sql.drush.inc drush_sql_get_table_selection()
3 calls to drush_sql_get_table_selection()
drush_archive_dump in commands/core/archive.drush.inc
Command callback. Generate site archive file.
drush_sql_dump in commands/sql/sql.drush.inc
Build a mysqldump/pg_dump/sqlite statement.
drush_sql_sync in commands/sql/sync.sql.inc

File

commands/sql/sql.drush.inc, line 242
Drush sql commands

Code

function drush_sql_get_table_selection() {
  // Skip large core tables if instructed.  Also used by 'sql-sync' command.
  $skip_tables = _drush_sql_get_table_list('skip-tables');
  // Skip any structure-tables as well.
  $structure_tables = _drush_sql_get_table_list('structure-tables');
  // Dump only the specified tables.  Takes precedence over skip-tables and structure-tables.
  $tables = _drush_sql_get_table_list('tables');

  return array(
    'skip' => $skip_tables,
    'structure' => $structure_tables,
    'tables' => $tables,
  );
}