Drush: commands/sql/sql.drush.inc File Reference

  1. 7.x doxygen/html/sql_8drush_8inc.html
  2. master doxygen/html/sql_8drush_8inc.html
sql.drush.inc File Reference

Go to the source code of this file.

Functions

 sql_drush_help ($section)
 sql_drush_command ()
 sql_drush_help_alter (&$command)
 sql_sql_sync_complete ()
 drush_sql_bootstrap_database_configuration ()
 drush_sql_bootstrap_further ()
 drush_sql_conf ()
 drush_sql_connect ()
 drush_sql_create ()
 drush_sql_dump ()
 drush_sql_get_table_selection ()
 drush_sql_expand_wildcard_tables ($tables, $db_tables)
 drush_sql_filter_tables ($tables, $db_tables)
 _drush_sql_expand_and_filter_tables ($tables, $db_tables)
 _drush_sql_get_raw_table_list ($option_name)
 drush_sql_query ($query=NULL)
 drush_sql_drop ()
 drush_sql_cli ()
 drush_sql_sanitize ()
 drush_sql_register_post_sync_op ($id, $message, $query=NULL)
 _drush_sql_get_post_sync_messages ()
 drush_sql_get_class ($db_spec=NULL)
 drush_sql_get_version ()
 sql_drush_sql_sync_sanitize ($site)

Detailed Description

Drush sql commands

Definition in file sql.drush.inc.

Function Documentation

_drush_sql_expand_and_filter_tables (   $tables,
  $db_tables 
)

Given the table names in the input array that may contain wildcards (*), expand the table names so that the array returned only contains table names that exist in the database.

Parameters
array$tablesAn array of table names where the table names may contain the * wildcard character.
array$db_tablesThe list of tables present in a database.
Returns
array An array of tables with non-existant tables removed.

Definition at line 436 of file sql.drush.inc.

References drush_sql_expand_wildcard_tables(), and drush_sql_filter_tables().

Referenced by Drush\Sql\SqlBase\get_expanded_table_selection().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_sql_get_post_sync_messages ( )

Builds a confirmation message for all post-sync operations.

Returns
string All post-sync operation messages concatenated together.

Definition at line 616 of file sql.drush.inc.

References drush_get_context(), and dt().

Referenced by drush_sql_sanitize().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_sql_get_raw_table_list (   $option_name)

Consult the specified options and return the list of tables specified.

Parameters
option_nameThe option name to check: skip-tables, structure-tables or tables. This function will check both *-key and *-list, and, in the case of sql-sync, will also check target-* and source-*, to see if an alias set one of these options.
Returns
array Returns an array of tables based on the first option found, or an empty array if there were no matches.

Definition at line 457 of file sql.drush.inc.

References drush_get_option().

Referenced by drush_sql_get_table_selection().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sql_bootstrap_database_configuration ( )

Safely bootstrap Drupal to the point where we can access the database configuration.

Definition at line 276 of file sql.drush.inc.

References DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION, and drush_bootstrap_max().

Referenced by drush_sql_bootstrap_further(), and drush_sql_conf().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sql_bootstrap_further ( )

Check whether further bootstrap is needed. If so, do it.

Definition at line 291 of file sql.drush.inc.

References drush_get_option(), and drush_sql_bootstrap_database_configuration().

Referenced by drush_sql_connect(), drush_sql_create(), drush_sql_drop(), drush_sql_dump(), drush_sql_query(), and drush_sql_sanitize().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sql_conf ( )

Command callback. Displays the Drupal site's database connection string.

Definition at line 300 of file sql.drush.inc.

References drush_get_option(), drush_sql_bootstrap_database_configuration(), and drush_sql_get_class().

Here is the call graph for this function:

drush_sql_connect ( )

Command callback. Emits a connect string.

Definition at line 315 of file sql.drush.inc.

References drush_sql_bootstrap_further(), and drush_sql_get_class().

Here is the call graph for this function:

drush_sql_create ( )

Command callback. Create a database.

Definition at line 324 of file sql.drush.inc.

References drush_confirm(), drush_get_context(), drush_print(), drush_sql_bootstrap_further(), drush_sql_get_class(), drush_user_abort(), and dt().

Here is the call graph for this function:

drush_sql_drop ( )

Drops all tables in the database.

Definition at line 515 of file sql.drush.inc.

References drush_confirm(), drush_sql_bootstrap_further(), drush_sql_get_class(), drush_user_abort(), and dt().

Here is the call graph for this function:

drush_sql_dump ( )

Command callback. Outputs the entire Drupal database in SQL format using mysqldump or equivalent.

Definition at line 346 of file sql.drush.inc.

References drush_get_option(), drush_sql_bootstrap_further(), and drush_sql_get_class().

Here is the call graph for this function:

drush_sql_expand_wildcard_tables (   $tables,
  $db_tables 
)

Expand wildcard tables.

Parameters
array$tablesAn array of table names, some of which may contain wildcards (*).
array$db_tablesAn array with all the existing table names in the current database.
Returns
$tables array with wildcards resolved to real table names.

Definition at line 386 of file sql.drush.inc.

Referenced by _drush_sql_expand_and_filter_tables(), and Unish\WildcardUnitCase\testExpandWildcardTables().

Here is the caller graph for this function:

drush_sql_filter_tables (   $tables,
  $db_tables 
)

Filters tables.

Parameters
array$tablesAn array of table names to filter.
array$db_tablesAn array with all the existing table names in the current database.
Returns
An array with only valid table names (i.e. all of which actually exist in the database).

Definition at line 412 of file sql.drush.inc.

Referenced by _drush_sql_expand_and_filter_tables(), and Unish\WildcardUnitCase\testFilterTables().

Here is the caller graph for this function:

drush_sql_get_class (   $db_spec = NULL)

Wrapper for drush_get_class; instantiates an driver-specific instance of SqlBase class.

Parameters
array$db_specIf known, specify a $db_spec that the class can operate with.
Exceptions
\Drush\Sql\SqlException
Returns
Drush

Definition at line 642 of file sql.drush.inc.

References drush_convert_db_from_db_url(), drush_get_class(), and drush_get_option().

Referenced by drush_archive_dump(), drush_archive_restore(), drush_preflight_backup_dir(), drush_sql_conf(), drush_sql_connect(), drush_sql_create(), drush_sql_drop(), drush_sql_dump(), drush_sql_query(), drush_sql_sanitize(), and drush_valid_db_credentials().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sql_get_table_selection ( )

Construct an array that places table names in appropriate buckets based on whether the table is to be skipped, included for structure only, or have structure and data dumped. The keys of the array are:

  • skip: tables to be skipped completed in the dump
  • structure: tables to only have their structure i.e. DDL dumped
  • tables: tables to have structure and data dumped
Returns
array An array of table names with each table name in the appropriate element of the array.

Definition at line 365 of file sql.drush.inc.

References _drush_sql_get_raw_table_list().

Referenced by Drush\Sql\SqlBase\get_expanded_table_selection().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sql_query (   $query = NULL)

Command callback. Executes the given SQL query on the Drupal database.

Definition at line 486 of file sql.drush.inc.

References DRUSH_BOOTSTRAP_DRUPAL_DATABASE, drush_bootstrap_max(), drush_get_context(), drush_get_option(), drush_print(), drush_set_error(), drush_shell_exec_output(), drush_sql_bootstrap_further(), drush_sql_get_class(), and dt().

Here is the call graph for this function:

drush_sql_register_post_sync_op (   $id,
  $message,
  $query = NULL 
)

Call from a pre-sql-sync hook to register an sql query to be executed in the post-sql-sync hook.

See Also
drush_sql_pre_sql_sync() and
drush_sql_post_sql_sync().
Parameters
$idString containing an identifier representing this operation. This id is not actually used at the moment, it is just used to fufill the contract of drush contexts.
$messageString with the confirmation message that describes to the user what the post-sync operation is going to do. This confirmation message is printed out just before the user is asked whether or not the sql-sync operation should be continued.
$queryString containing the sql query to execute. If no query is provided, then the confirmation message will be displayed to the user, but no action will be taken in the post-sync hook. This is useful for drush modules that wish to provide their own post-sync hooks to fix up the target database in other ways (e.g. through Drupal APIs).

Definition at line 602 of file sql.drush.inc.

References drush_get_context(), and drush_set_context().

Referenced by hook_drush_sql_sync_sanitize(), and sql_drush_sql_sync_sanitize().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sql_sanitize ( )

Command callback. Run's the sanitization operations on the current database.

See Also
hook_drush_sql_sync_sanitize() for adding custom sanitize routines.

Definition at line 537 of file sql.drush.inc.

References _drush_sql_get_post_sync_messages(), DRUSH_BOOTSTRAP_DRUPAL_DATABASE, drush_bootstrap_max(), drush_command_invoke_all(), drush_confirm(), drush_drupal_major_version(), drush_get_context(), drush_get_option(), drush_include(), drush_print(), drush_sql_bootstrap_further(), drush_sql_get_class(), drush_user_abort(), and dt().

Here is the call graph for this function:

sql_drush_command ( )

Implementation of hook_drush_command().

Definition at line 25 of file sql.drush.inc.

References DRUSH_BOOTSTRAP_DRUSH.

sql_drush_help (   $section)

Implementation of hook_drush_help().

Definition at line 11 of file sql.drush.inc.

References dt().

Here is the call graph for this function:

sql_drush_help_alter ( $command)

Implements hook_drush_help_alter().

Definition at line 250 of file sql.drush.inc.

References drush_drupal_major_version().

Here is the call graph for this function:

sql_drush_sql_sync_sanitize (   $site)

Implements hook_sql_drush_sql_sync_sanitize.

Sanitize usernames, passwords, and sessions when the –sanitize option is used. It is also an example of how to write a database sanitizer for sql sync.

To write your own sync hook function, define mymodule_drush_sql_sync_sanitize() and follow the form of this function to add your own database sanitization operations via the register post-sync op function;

See Also
drush_sql_register_post_sync_op(). This is the only thing that the sync hook function needs to do; sql-sync takes care of the rest.

The function below has a lot of logic to process user preferences and generate the correct SQL regardless of whether Postgres, Mysql, Drupal 6/7/8 is in use. A simpler sanitize function that always used default values and only worked with Drupal 6 + mysql appears in the drush.api.php.

See Also
hook_drush_sql_sync_sanitize().

Definition at line 694 of file sql.drush.inc.

References drush_bootstrap(), DRUSH_BOOTSTRAP_DRUPAL_FULL, drush_drupal_major_version(), drush_get_option(), drush_sitealias_get_record(), drush_sql_register_post_sync_op(), dt(), and sitealias_get_databases_from_record().

Here is the call graph for this function:

sql_sql_sync_complete ( )

Command argument complete callback.

Returns
Array of available site aliases.

Definition at line 268 of file sql.drush.inc.

References _drush_sitealias_all_list().

Here is the call graph for this function:

File

doxygen/html/sql_8drush_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: commands/sql/sql.drush.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_afac61274991793aa7e9133a8f4f291e.html">commands</a></li><li class="navelem"><a class="el" href="dir_a58f00770bab6224494a64dcb760b840.html">sql</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">sql.drush.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="sql_8drush_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8a9ff7dfb06fb647e0536745e416cc4c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a8a9ff7dfb06fb647e0536745e416cc4c">sql_drush_help</a> ($section)</td></tr>
<tr class="memitem:a914168c58c63d217348013ba39f9c133"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a914168c58c63d217348013ba39f9c133">sql_drush_command</a> ()</td></tr>
<tr class="memitem:a848630530acc79df2b73d73df3feb131"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a848630530acc79df2b73d73df3feb131">sql_drush_help_alter</a> (&amp;$command)</td></tr>
<tr class="memitem:a6c0438aa3afaa78282707b5165e386e4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a6c0438aa3afaa78282707b5165e386e4">sql_sql_sync_complete</a> ()</td></tr>
<tr class="memitem:ab13f76971fb460582134a678eaec114c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c">drush_sql_bootstrap_database_configuration</a> ()</td></tr>
<tr class="memitem:a9eaa40f9c67b33ac31e8fd74f707ea10"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10">drush_sql_bootstrap_further</a> ()</td></tr>
<tr class="memitem:af98d2fe4af349cc28668b6f64a0975ec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#af98d2fe4af349cc28668b6f64a0975ec">drush_sql_conf</a> ()</td></tr>
<tr class="memitem:a5744455db8f6228038e54def1d1d8fd7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a5744455db8f6228038e54def1d1d8fd7">drush_sql_connect</a> ()</td></tr>
<tr class="memitem:abf491ac1afcb96f58020dc2204094ebb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#abf491ac1afcb96f58020dc2204094ebb">drush_sql_create</a> ()</td></tr>
<tr class="memitem:a12a61bf397d9e982f78d2af3711e153f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a12a61bf397d9e982f78d2af3711e153f">drush_sql_dump</a> ()</td></tr>
<tr class="memitem:ae314e0b6e40fe3207c1481649b760c26"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#ae314e0b6e40fe3207c1481649b760c26">drush_sql_get_table_selection</a> ()</td></tr>
<tr class="memitem:a825e07c3e47e30d9febf381b814a92b0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a825e07c3e47e30d9febf381b814a92b0">drush_sql_expand_wildcard_tables</a> ($tables, $db_tables)</td></tr>
<tr class="memitem:a860b4b13d2fbed8feddce016484d3068"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a860b4b13d2fbed8feddce016484d3068">drush_sql_filter_tables</a> ($tables, $db_tables)</td></tr>
<tr class="memitem:a69379e6e5cad1448ab76491b7c4cdd40"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a69379e6e5cad1448ab76491b7c4cdd40">_drush_sql_expand_and_filter_tables</a> ($tables, $db_tables)</td></tr>
<tr class="memitem:ad45615d8733646465bac4234007f4bd6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#ad45615d8733646465bac4234007f4bd6">_drush_sql_get_raw_table_list</a> ($option_name)</td></tr>
<tr class="memitem:a05194b55585f4faf2836070d11e55df5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a05194b55585f4faf2836070d11e55df5">drush_sql_query</a> ($query=NULL)</td></tr>
<tr class="memitem:ac538b2fa7b1421461139b1a420531cba"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#ac538b2fa7b1421461139b1a420531cba">drush_sql_drop</a> ()</td></tr>
<tr class="memitem:a7205242644ad1889814a5ddb2032553d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7205242644ad1889814a5ddb2032553d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_sql_cli</b> ()</td></tr>
<tr class="memitem:a9e45958fb554a3f6049ee18c857207af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af">drush_sql_sanitize</a> ()</td></tr>
<tr class="memitem:aa235e973665b628a3301129a4967a351"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#aa235e973665b628a3301129a4967a351">drush_sql_register_post_sync_op</a> ($id, $message, $query=NULL)</td></tr>
<tr class="memitem:a96b928aad1ddc72f4cfd2d3058baf123"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a96b928aad1ddc72f4cfd2d3058baf123">_drush_sql_get_post_sync_messages</a> ()</td></tr>
<tr class="memitem:a828cf565e2e7e569e41c3fbe8a8e0cf0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0">drush_sql_get_class</a> ($db_spec=NULL)</td></tr>
<tr class="memitem:a9a0d130954dc034f634aa42f684f6f8c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a0d130954dc034f634aa42f684f6f8c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_sql_get_version</b> ()</td></tr>
<tr class="memitem:a31ea6e16a805e81fad22960a6325ec51"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51">sql_drush_sql_sync_sanitize</a> ($site)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Drush sql commands </p>

<p>Definition in file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a69379e6e5cad1448ab76491b7c4cdd40"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_sql_expand_and_filter_tables </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$tables</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$db_tables</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Given the table names in the input array that may contain wildcards (<code>*</code>), expand the table names so that the array returned only contains table names that exist in the database.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$tables</td><td>An array of table names where the table names may contain the <code>*</code> wildcard character. </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$db_tables</td><td>The list of tables present in a database. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array An array of tables with non-existant tables removed. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00436">436</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="sql_8drush_8inc_source.html#l00386">drush_sql_expand_wildcard_tables()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00412">drush_sql_filter_tables()</a>.</p>

<p>Referenced by <a class="el" href="SqlBase_8php_source.html#l00307">Drush\Sql\SqlBase\get_expanded_table_selection()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_cgraph.png" border="0" usemap="#sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_cgraph" id="sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_cgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a825e07c3e47e30d9febf381b814a92b0" title="drush_sql_expand_wildcard\l_tables" alt="" coords="217,5,399,51"/><area shape="rect" id="node5" href="sql_8drush_8inc.html#a860b4b13d2fbed8feddce016484d3068" title="drush_sql_filter_tables" alt="" coords="232,75,384,104"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_icgraph.png" border="0" usemap="#sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_icgraph" id="sql_8drush_8inc_a69379e6e5cad1448ab76491b7c4cdd40_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#af5a9a4ba79d9d75c8230d386ff50545a" title="Drush\\Sql\\SqlBase\\get\l_expanded_table_selection" alt="" coords="216,5,395,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a96b928aad1ddc72f4cfd2d3058baf123"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_sql_get_post_sync_messages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Builds a confirmation message for all post-sync operations.</p>
<dl class="section return"><dt>Returns</dt><dd>string All post-sync operation messages concatenated together. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00616">616</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_cgraph.png" border="0" usemap="#sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_cgraph" id="sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="697,5,825,35"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="199,59,236,88"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="287,54,420,101"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="471,60,615,89"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="664,60,859,89"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_icgraph.png" border="0" usemap="#sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_icgraph" id="sql_8drush_8inc_a96b928aad1ddc72f4cfd2d3058baf123_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="197,13,328,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad45615d8733646465bac4234007f4bd6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_sql_get_raw_table_list </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option_name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Consult the specified options and return the list of tables specified.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option_name</td><td>The option name to check: skip-tables, structure-tables or tables. This function will check both *-key and *-list, and, in the case of sql-sync, will also check target-* and source-*, to see if an alias set one of these options. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array Returns an array of tables based on the first option found, or an empty array if there were no matches. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00457">457</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00365">drush_sql_get_table_selection()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_cgraph.png" border="0" usemap="#sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_cgraph" id="sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="193,59,313,88"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="375,5,503,35"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="375,59,503,88"/><area shape="rect" id="node9" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="364,112,513,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_icgraph.png" border="0" usemap="#sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_icgraph" id="sql_8drush_8inc_ad45615d8733646465bac4234007f4bd6_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#ae314e0b6e40fe3207c1481649b760c26" title="drush_sql_get_table\l_selection" alt="" coords="192,5,331,51"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#af5a9a4ba79d9d75c8230d386ff50545a" title="Drush\\Sql\\SqlBase\\get\l_expanded_table_selection" alt="" coords="379,5,557,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab13f76971fb460582134a678eaec114c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_bootstrap_database_configuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Safely bootstrap Drupal to the point where we can access the database configuration. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00276">276</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00076">DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION</a>, and <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00326">drush_bootstrap_max()</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00300">drush_sql_conf()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_cgraph.png" border="0" usemap="#sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_cgraph" id="sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_cgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="216,80,363,109"/><area shape="rect" id="node5" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="792,92,963,121"/><area shape="rect" id="node7" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="575,144,740,173"/><area shape="rect" id="node12" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1956,376,2084,405"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="411,272,525,301"/><area shape="rect" id="node10" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="813,195,941,224"/><area shape="rect" id="node20" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="1740,299,1852,328"/><area shape="rect" id="node23" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1539,403,1616,432"/><area shape="rect" id="node29" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1323,708,1360,737"/><area shape="rect" id="node38" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="583,603,732,632"/><area shape="rect" id="node54" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1285,455,1397,484"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1719,453,1873,483"/><area shape="rect" id="node31" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1511,683,1644,730"/><area shape="rect" id="node33" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1724,679,1868,708"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1923,679,2117,708"/><area shape="rect" id="node40" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1263,615,1420,644"/><area shape="rect" id="node43" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1265,508,1417,537"/><area shape="rect" id="node45" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="791,603,964,632"/><area shape="rect" id="node67" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="791,811,964,840"/><area shape="rect" id="node47" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1247,561,1436,591"/><area shape="rect" id="node51" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1040,603,1171,632"/><area shape="rect" id="node63" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1019,656,1192,685"/><area shape="rect" id="node49" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1487,559,1668,588"/><area shape="rect" id="node69" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1015,811,1196,840"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_icgraph.png" border="0" usemap="#sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_icgraph" id="sql_8drush_8inc_ab13f76971fb460582134a678eaec114c_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="216,130,355,177"/><area shape="rect" id="node17" href="sql_8drush_8inc.html#af98d2fe4af349cc28668b6f64a0975ec" title="drush_sql_conf" alt="" coords="231,200,340,229"/><area shape="rect" id="node5" href="sql_8drush_8inc.html#a5744455db8f6228038e54def1d1d8fd7" title="drush_sql_connect" alt="" coords="403,5,533,35"/><area shape="rect" id="node7" href="sql_8drush_8inc.html#abf491ac1afcb96f58020dc2204094ebb" title="drush_sql_create" alt="" coords="408,59,528,88"/><area shape="rect" id="node9" href="sql_8drush_8inc.html#a12a61bf397d9e982f78d2af3711e153f" title="drush_sql_dump" alt="" coords="409,112,527,141"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#a05194b55585f4faf2836070d11e55df5" title="drush_sql_query" alt="" coords="409,165,527,195"/><area shape="rect" id="node13" href="sql_8drush_8inc.html#ac538b2fa7b1421461139b1a420531cba" title="drush_sql_drop" alt="" coords="413,219,523,248"/><area shape="rect" id="node15" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="403,272,533,301"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9eaa40f9c67b33ac31e8fd74f707ea10"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_bootstrap_further </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check whether further bootstrap is needed. If so, do it. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00291">291</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00276">drush_sql_bootstrap_database_configuration()</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00315">drush_sql_connect()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00324">drush_sql_create()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00515">drush_sql_drop()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00346">drush_sql_dump()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00486">drush_sql_query()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_cgraph.png" border="0" usemap="#sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_cgraph" id="sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="213,275,333,304"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="192,577,355,623"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="415,301,543,331"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2148,523,2276,552"/><area shape="rect" id="node9" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="404,248,553,277"/><area shape="rect" id="node13" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="405,724,552,753"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="984,928,1155,957"/><area shape="rect" id="node17" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="767,928,932,957"/><area shape="rect" id="node24" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="603,724,717,753"/><area shape="rect" id="node20" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1005,827,1133,856"/><area shape="rect" id="node29" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="1932,775,2044,804"/><area shape="rect" id="node32" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1731,627,1808,656"/><area shape="rect" id="node38" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1515,211,1552,240"/><area shape="rect" id="node47" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="775,417,924,447"/><area shape="rect" id="node63" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1477,576,1589,605"/><area shape="rect" id="node35" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1911,575,2065,604"/><area shape="rect" id="node40" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1703,181,1836,227"/><area shape="rect" id="node42" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1916,5,2060,35"/><area shape="rect" id="node44" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2115,5,2309,35"/><area shape="rect" id="node49" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1455,365,1612,395"/><area shape="rect" id="node52" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1457,523,1609,552"/><area shape="rect" id="node54" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="983,417,1156,447"/><area shape="rect" id="node76" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="983,211,1156,240"/><area shape="rect" id="node56" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1439,469,1628,499"/><area shape="rect" id="node60" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1232,469,1363,499"/><area shape="rect" id="node72" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1211,365,1384,395"/><area shape="rect" id="node58" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1679,469,1860,499"/><area shape="rect" id="node78" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1207,211,1388,240"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_icgraph.png" border="0" usemap="#sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_icgraph" id="sql_8drush_8inc_a9eaa40f9c67b33ac31e8fd74f707ea10_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a5744455db8f6228038e54def1d1d8fd7" title="drush_sql_connect" alt="" coords="192,5,323,35"/><area shape="rect" id="node5" href="sql_8drush_8inc.html#abf491ac1afcb96f58020dc2204094ebb" title="drush_sql_create" alt="" coords="197,59,317,88"/><area shape="rect" id="node7" href="sql_8drush_8inc.html#ac538b2fa7b1421461139b1a420531cba" title="drush_sql_drop" alt="" coords="203,112,312,141"/><area shape="rect" id="node9" href="sql_8drush_8inc.html#a12a61bf397d9e982f78d2af3711e153f" title="drush_sql_dump" alt="" coords="199,165,316,195"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#a05194b55585f4faf2836070d11e55df5" title="drush_sql_query" alt="" coords="199,219,316,248"/><area shape="rect" id="node13" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="192,272,323,301"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af98d2fe4af349cc28668b6f64a0975ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_conf </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Displays the Drupal site's database connection string. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00300">300</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00276">drush_sql_bootstrap_database_configuration()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_af98d2fe4af349cc28668b6f64a0975ec_cgraph.png" border="0" usemap="#sql_8drush_8inc_af98d2fe4af349cc28668b6f64a0975ec_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_af98d2fe4af349cc28668b6f64a0975ec_cgraph" id="sql_8drush_8inc_af98d2fe4af349cc28668b6f64a0975ec_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="396,109,516,139"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="165,795,328,842"/><area shape="rect" id="node83" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="176,936,317,965"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="596,5,724,35"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2167,345,2295,375"/><area shape="rect" id="node9" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="585,109,735,139"/><area shape="rect" id="node13" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="383,804,529,833"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1003,920,1173,949"/><area shape="rect" id="node17" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="785,868,951,897"/><area shape="rect" id="node24" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="603,740,717,769"/><area shape="rect" id="node20" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1024,867,1152,896"/><area shape="rect" id="node29" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="1951,188,2063,217"/><area shape="rect" id="node32" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1749,241,1827,271"/><area shape="rect" id="node38" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1533,699,1571,728"/><area shape="rect" id="node47" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="793,544,943,573"/><area shape="rect" id="node63" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1496,296,1608,325"/><area shape="rect" id="node35" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1929,293,2084,323"/><area shape="rect" id="node40" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1721,853,1855,899"/><area shape="rect" id="node42" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1935,857,2079,887"/><area shape="rect" id="node44" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2133,857,2328,887"/><area shape="rect" id="node49" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1473,433,1631,463"/><area shape="rect" id="node52" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1476,360,1628,389"/><area shape="rect" id="node54" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1001,544,1175,573"/><area shape="rect" id="node76" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1001,629,1175,659"/><area shape="rect" id="node56" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1457,487,1647,516"/><area shape="rect" id="node60" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1251,440,1381,469"/><area shape="rect" id="node72" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1229,544,1403,573"/><area shape="rect" id="node58" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1697,397,1879,427"/><area shape="rect" id="node78" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1225,699,1407,728"/><area shape="rect" id="node86" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="809,1023,927,1052"/><area shape="rect" id="node89" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="377,1073,535,1119"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5744455db8f6228038e54def1d1d8fd7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_connect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Emits a connect string. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00315">315</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a5744455db8f6228038e54def1d1d8fd7_cgraph.png" border="0" usemap="#sql_8drush_8inc_a5744455db8f6228038e54def1d1d8fd7_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a5744455db8f6228038e54def1d1d8fd7_cgraph" id="sql_8drush_8inc_a5744455db8f6228038e54def1d1d8fd7_cgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="185,967,324,1014"/><area shape="rect" id="node85" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="184,1049,325,1079"/><area shape="rect" id="node5" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="395,976,515,1005"/><area shape="rect" id="node13" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="373,501,536,547"/><area shape="rect" id="node7" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="596,1019,724,1048"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2332,403,2460,432"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="585,965,735,995"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="587,93,733,123"/><area shape="rect" id="node17" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1168,93,1339,123"/><area shape="rect" id="node19" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="951,93,1116,123"/><area shape="rect" id="node26" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="785,272,900,301"/><area shape="rect" id="node22" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1189,195,1317,224"/><area shape="rect" id="node31" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="2116,247,2228,276"/><area shape="rect" id="node34" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1915,299,1992,328"/><area shape="rect" id="node40" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1699,760,1736,789"/><area shape="rect" id="node49" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="959,607,1108,636"/><area shape="rect" id="node65" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1661,375,1773,404"/><area shape="rect" id="node37" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2095,351,2249,380"/><area shape="rect" id="node42" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1887,905,2020,951"/><area shape="rect" id="node44" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2100,909,2244,939"/><area shape="rect" id="node46" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2299,909,2493,939"/><area shape="rect" id="node51" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1639,609,1796,639"/><area shape="rect" id="node54" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1641,556,1793,585"/><area shape="rect" id="node56" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1167,528,1340,557"/><area shape="rect" id="node78" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1167,735,1340,764"/><area shape="rect" id="node58" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1623,452,1812,481"/><area shape="rect" id="node62" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1416,555,1547,584"/><area shape="rect" id="node74" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1395,451,1568,480"/><area shape="rect" id="node60" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1863,453,2044,483"/><area shape="rect" id="node80" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1391,760,1572,789"/><area shape="rect" id="node88" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="784,1017,901,1047"/><area shape="rect" id="node91" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="376,1122,533,1169"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abf491ac1afcb96f58020dc2204094ebb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Create a database. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00324">324</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00375">drush_confirm()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>, <a class="el" href="drush_8inc_source.html#l01797">drush_user_abort()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_abf491ac1afcb96f58020dc2204094ebb_cgraph.png" border="0" usemap="#sql_8drush_8inc_abf491ac1afcb96f58020dc2204094ebb_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_abf491ac1afcb96f58020dc2204094ebb_cgraph" id="sql_8drush_8inc_abf491ac1afcb96f58020dc2204094ebb_cgraph">
<area shape="rect" id="node3" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="193,327,297,356"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="604,355,689,384"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2359,725,2487,755"/><area shape="rect" id="node21" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="176,482,315,529"/><area shape="rect" id="node51" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1725,411,1763,440"/><area shape="rect" id="node96" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="576,223,717,252"/><area shape="rect" id="node104" href="group__errorhandling.html#ga366aaafdf8c774a58653c64a65b6d91c" title="drush_user_abort" alt="" coords="999,624,1121,653"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="377,379,511,408"/><area shape="rect" id="node9" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="788,343,908,372"/><area shape="rect" id="node11" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="996,261,1124,291"/><area shape="rect" id="node15" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="985,315,1135,344"/><area shape="rect" id="node24" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="363,533,525,579"/><area shape="rect" id="node26" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="573,541,720,571"/><area shape="rect" id="node28" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1195,468,1365,497"/><area shape="rect" id="node30" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="977,520,1143,549"/><area shape="rect" id="node37" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="791,701,905,731"/><area shape="rect" id="node33" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1216,583,1344,612"/><area shape="rect" id="node42" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="2143,1129,2255,1159"/><area shape="rect" id="node45" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1941,933,2019,963"/><area shape="rect" id="node60" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="985,728,1135,757"/><area shape="rect" id="node76" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1688,881,1800,911"/><area shape="rect" id="node48" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2121,881,2276,911"/><area shape="rect" id="node53" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1913,141,2047,187"/><area shape="rect" id="node55" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2127,5,2271,35"/><area shape="rect" id="node57" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2325,5,2520,35"/><area shape="rect" id="node62" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1665,775,1823,804"/><area shape="rect" id="node65" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1668,828,1820,857"/><area shape="rect" id="node67" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1193,716,1367,745"/><area shape="rect" id="node89" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1193,657,1367,687"/><area shape="rect" id="node69" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1649,721,1839,751"/><area shape="rect" id="node73" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1443,773,1573,803"/><area shape="rect" id="node85" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1421,619,1595,648"/><area shape="rect" id="node71" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1889,777,2071,807"/><area shape="rect" id="node91" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1417,515,1599,544"/><area shape="rect" id="node99" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="1449,155,1567,184"/><area shape="rect" id="node102" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="769,210,927,257"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac538b2fa7b1421461139b1a420531cba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_drop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drops all tables in the database. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00515">515</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00375">drush_confirm()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>, <a class="el" href="drush_8inc_source.html#l01797">drush_user_abort()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ac538b2fa7b1421461139b1a420531cba_cgraph.png" border="0" usemap="#sql_8drush_8inc_ac538b2fa7b1421461139b1a420531cba_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_ac538b2fa7b1421461139b1a420531cba_cgraph" id="sql_8drush_8inc_ac538b2fa7b1421461139b1a420531cba_cgraph">
<area shape="rect" id="node3" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="183,913,287,943"/><area shape="rect" id="node19" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="165,985,304,1031"/><area shape="rect" id="node49" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1715,605,1752,635"/><area shape="rect" id="node94" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="565,1056,707,1085"/><area shape="rect" id="node102" href="group__errorhandling.html#ga366aaafdf8c774a58653c64a65b6d91c" title="drush_user_abort" alt="" coords="988,505,1111,535"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="367,895,500,924"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="593,945,679,975"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2348,619,2476,648"/><area shape="rect" id="node9" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="777,997,897,1027"/><area shape="rect" id="node11" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="985,1019,1113,1048"/><area shape="rect" id="node15" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="975,1072,1124,1101"/><area shape="rect" id="node22" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="352,818,515,865"/><area shape="rect" id="node24" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="563,815,709,844"/><area shape="rect" id="node26" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1184,813,1355,843"/><area shape="rect" id="node28" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="967,712,1132,741"/><area shape="rect" id="node35" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="780,635,895,664"/><area shape="rect" id="node31" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1205,760,1333,789"/><area shape="rect" id="node40" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="2132,709,2244,739"/><area shape="rect" id="node43" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1931,500,2008,529"/><area shape="rect" id="node58" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="975,245,1124,275"/><area shape="rect" id="node74" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1677,375,1789,404"/><area shape="rect" id="node46" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2111,500,2265,529"/><area shape="rect" id="node51" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1903,1018,2036,1065"/><area shape="rect" id="node53" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2116,1023,2260,1052"/><area shape="rect" id="node55" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2315,1023,2509,1052"/><area shape="rect" id="node60" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1655,43,1812,72"/><area shape="rect" id="node63" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1657,96,1809,125"/><area shape="rect" id="node65" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1183,245,1356,275"/><area shape="rect" id="node87" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1183,555,1356,584"/><area shape="rect" id="node67" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1639,245,1828,275"/><area shape="rect" id="node71" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1432,245,1563,275"/><area shape="rect" id="node83" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1411,299,1584,328"/><area shape="rect" id="node69" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1879,285,2060,315"/><area shape="rect" id="node89" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1407,555,1588,584"/><area shape="rect" id="node97" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="1439,1099,1556,1128"/><area shape="rect" id="node100" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="759,1050,916,1097"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a12a61bf397d9e982f78d2af3711e153f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_dump </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Outputs the entire Drupal database in SQL format using mysqldump or equivalent. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00346">346</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a12a61bf397d9e982f78d2af3711e153f_cgraph.png" border="0" usemap="#sql_8drush_8inc_a12a61bf397d9e982f78d2af3711e153f_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a12a61bf397d9e982f78d2af3711e153f_cgraph" id="sql_8drush_8inc_a12a61bf397d9e982f78d2af3711e153f_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="381,112,501,141"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="172,169,311,215"/><area shape="rect" id="node86" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="171,253,312,283"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="583,59,711,88"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2319,520,2447,549"/><area shape="rect" id="node9" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="572,5,721,35"/><area shape="rect" id="node14" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="360,169,523,215"/><area shape="rect" id="node16" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="573,209,720,239"/><area shape="rect" id="node18" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1155,264,1325,293"/><area shape="rect" id="node20" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="937,264,1103,293"/><area shape="rect" id="node27" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="772,443,887,472"/><area shape="rect" id="node23" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1176,416,1304,445"/><area shape="rect" id="node32" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="2103,468,2215,497"/><area shape="rect" id="node35" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1901,520,1979,549"/><area shape="rect" id="node41" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1685,935,1723,964"/><area shape="rect" id="node50" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="945,776,1095,805"/><area shape="rect" id="node66" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1648,577,1760,607"/><area shape="rect" id="node38" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2081,572,2236,601"/><area shape="rect" id="node43" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1873,926,2007,973"/><area shape="rect" id="node45" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2087,907,2231,936"/><area shape="rect" id="node47" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2285,907,2480,936"/><area shape="rect" id="node52" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1625,641,1783,671"/><area shape="rect" id="node55" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1628,769,1780,799"/><area shape="rect" id="node57" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1153,776,1327,805"/><area shape="rect" id="node79" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1153,981,1327,1011"/><area shape="rect" id="node59" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1609,695,1799,724"/><area shape="rect" id="node63" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1403,723,1533,752"/><area shape="rect" id="node75" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1381,776,1555,805"/><area shape="rect" id="node61" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1849,676,2031,705"/><area shape="rect" id="node81" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1377,981,1559,1011"/><area shape="rect" id="node89" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="771,803,888,832"/><area shape="rect" id="node92" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="363,313,520,359"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a825e07c3e47e30d9febf381b814a92b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_expand_wildcard_tables </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$tables</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$db_tables</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Expand wildcard tables.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$tables</td><td>An array of table names, some of which may contain wildcards (<code>*</code>). </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$db_tables</td><td>An array with all the existing table names in the current database. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>$tables array with wildcards resolved to real table names. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00386">386</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00436">_drush_sql_expand_and_filter_tables()</a>, and <a class="el" href="expandWildcardTablesUnitTest_8php_source.html#l00024">Unish\WildcardUnitCase\testExpandWildcardTables()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a825e07c3e47e30d9febf381b814a92b0_icgraph.png" border="0" usemap="#sql_8drush_8inc_a825e07c3e47e30d9febf381b814a92b0_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_a825e07c3e47e30d9febf381b814a92b0_icgraph" id="sql_8drush_8inc_a825e07c3e47e30d9febf381b814a92b0_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a69379e6e5cad1448ab76491b7c4cdd40" title="_drush_sql_expand_and\l_filter_tables" alt="" coords="248,5,411,51"/><area shape="rect" id="node7" href="classUnish_1_1WildcardUnitCase.html#aa5384003b275f0cb8c7d0c70aa3e01ae" title="Unish\\WildcardUnitCase\l\\testExpandWildcardTables" alt="" coords="239,74,420,121"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#af5a9a4ba79d9d75c8230d386ff50545a" title="Drush\\Sql\\SqlBase\\get\l_expanded_table_selection" alt="" coords="469,5,648,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a860b4b13d2fbed8feddce016484d3068"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_filter_tables </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$tables</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$db_tables</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Filters tables.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$tables</td><td>An array of table names to filter. </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$db_tables</td><td>An array with all the existing table names in the current database. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array with only valid table names (i.e. all of which actually exist in the database). </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00412">412</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00436">_drush_sql_expand_and_filter_tables()</a>, and <a class="el" href="expandWildcardTablesUnitTest_8php_source.html#l00055">Unish\WildcardUnitCase\testFilterTables()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a860b4b13d2fbed8feddce016484d3068_icgraph.png" border="0" usemap="#sql_8drush_8inc_a860b4b13d2fbed8feddce016484d3068_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_a860b4b13d2fbed8feddce016484d3068_icgraph" id="sql_8drush_8inc_a860b4b13d2fbed8feddce016484d3068_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a69379e6e5cad1448ab76491b7c4cdd40" title="_drush_sql_expand_and\l_filter_tables" alt="" coords="208,5,371,51"/><area shape="rect" id="node7" href="classUnish_1_1WildcardUnitCase.html#a8b75c81c7af49658861dfdeca70279fb" title="Unish\\WildcardUnitCase\l\\testFilterTables" alt="" coords="207,74,372,121"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#af5a9a4ba79d9d75c8230d386ff50545a" title="Drush\\Sql\\SqlBase\\get\l_expanded_table_selection" alt="" coords="421,5,600,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a828cf565e2e7e569e41c3fbe8a8e0cf0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_get_class </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$db_spec</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Wrapper for drush_get_class; instantiates an driver-specific instance of SqlBase class.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$db_spec</td><td>If known, specify a $db_spec that the class can operate with.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">\Drush\Sql\SqlException</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Drush </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00642">642</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="sitealias_8inc_source.html#l01563">drush_convert_db_from_db_url()</a>, <a class="el" href="drush_8inc_source.html#l00096">drush_get_class()</a>, and <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p>Referenced by <a class="el" href="archive_8drush_8inc_source.html#l00071">drush_archive_dump()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00310">drush_archive_restore()</a>, <a class="el" href="filesystem_8inc_source.html#l00555">drush_preflight_backup_dir()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00300">drush_sql_conf()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00315">drush_sql_connect()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00324">drush_sql_create()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00515">drush_sql_drop()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00346">drush_sql_dump()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00486">drush_sql_query()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>, and <a class="el" href="includes_2environment_8inc_source.html#l00375">drush_valid_db_credentials()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_cgraph.png" border="0" usemap="#sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_cgraph" id="sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_cgraph">
<area shape="rect" id="node3" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="196,5,353,51"/><area shape="rect" id="node5" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="216,75,333,104"/><area shape="rect" id="node15" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="215,157,335,187"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="412,51,545,98"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="604,63,748,92"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="797,63,992,92"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="831,117,959,147"/><area shape="rect" id="node17" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="415,172,543,201"/><area shape="rect" id="node20" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="404,225,553,255"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_icgraph.png" border="0" usemap="#sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_icgraph" id="sql_8drush_8inc_a828cf565e2e7e569e41c3fbe8a8e0cf0_icgraph">
<area shape="rect" id="node3" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="213,5,355,35"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="209,59,359,88"/><area shape="rect" id="node7" href="group__filesystemfunctions.html#gaa69fcbb2b3c7a50c42f8fb10b4067364" title="drush_preflight_backup_dir" alt="" coords="196,112,372,141"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#af98d2fe4af349cc28668b6f64a0975ec" title="drush_sql_conf" alt="" coords="229,165,339,195"/><area shape="rect" id="node13" href="sql_8drush_8inc.html#a5744455db8f6228038e54def1d1d8fd7" title="drush_sql_connect" alt="" coords="219,219,349,248"/><area shape="rect" id="node15" href="sql_8drush_8inc.html#abf491ac1afcb96f58020dc2204094ebb" title="drush_sql_create" alt="" coords="224,272,344,301"/><area shape="rect" id="node17" href="sql_8drush_8inc.html#ac538b2fa7b1421461139b1a420531cba" title="drush_sql_drop" alt="" coords="229,325,339,355"/><area shape="rect" id="node19" href="sql_8drush_8inc.html#a12a61bf397d9e982f78d2af3711e153f" title="drush_sql_dump" alt="" coords="225,379,343,408"/><area shape="rect" id="node21" href="sql_8drush_8inc.html#a05194b55585f4faf2836070d11e55df5" title="drush_sql_query" alt="" coords="225,432,343,461"/><area shape="rect" id="node23" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="219,485,349,515"/><area shape="rect" id="node25" href="includes_2environment_8inc.html#adbd40db8b61325ed439ffe618f56282a" title="drush_valid_db_credentials" alt="" coords="195,539,373,568"/><area shape="rect" id="node9" href="group__filesystemfunctions.html#ga8b411cc66e895a6ea8a50c5560b15684" title="drush_prepare_backup_dir" alt="" coords="423,112,596,141"/><area shape="rect" id="node27" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a59a8442c329d4d7880811393c71a716c" title="_drush_bootstrap_drupal\l_database_validate" alt="" coords="428,530,591,577"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae314e0b6e40fe3207c1481649b760c26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_get_table_selection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Construct an array that places table names in appropriate buckets based on whether the table is to be skipped, included for structure only, or have structure and data dumped. The keys of the array are:</p>
<ul>
<li>skip: tables to be skipped completed in the dump</li>
<li>structure: tables to only have their structure i.e. DDL dumped</li>
<li>tables: tables to have structure and data dumped</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>array An array of table names with each table name in the appropriate element of the array. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00365">365</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="sql_8drush_8inc_source.html#l00457">_drush_sql_get_raw_table_list()</a>.</p>

<p>Referenced by <a class="el" href="SqlBase_8php_source.html#l00307">Drush\Sql\SqlBase\get_expanded_table_selection()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_cgraph.png" border="0" usemap="#sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_cgraph" id="sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_cgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#ad45615d8733646465bac4234007f4bd6" title="_drush_sql_get_raw\l_table_list" alt="" coords="192,50,331,97"/><area shape="rect" id="node5" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="380,59,500,88"/><area shape="rect" id="node7" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="561,5,689,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="561,59,689,88"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="551,112,700,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_icgraph.png" border="0" usemap="#sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_icgraph" id="sql_8drush_8inc_ae314e0b6e40fe3207c1481649b760c26_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#af5a9a4ba79d9d75c8230d386ff50545a" title="Drush\\Sql\\SqlBase\\get\l_expanded_table_selection" alt="" coords="192,5,371,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a05194b55585f4faf2836070d11e55df5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_query </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$query</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Executes the given SQL query on the Drupal database. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00486">486</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00088">DRUSH_BOOTSTRAP_DRUPAL_DATABASE</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00326">drush_bootstrap_max()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="exec_8inc_source.html#l00390">drush_shell_exec_output()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a05194b55585f4faf2836070d11e55df5_cgraph.png" border="0" usemap="#sql_8drush_8inc_a05194b55585f4faf2836070d11e55df5_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a05194b55585f4faf2836070d11e55df5_cgraph" id="sql_8drush_8inc_a05194b55585f4faf2836070d11e55df5_cgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="637,797,784,827"/><area shape="rect" id="node12" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2383,479,2511,508"/><area shape="rect" id="node29" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1749,631,1787,660"/><area shape="rect" id="node54" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1712,293,1824,323"/><area shape="rect" id="node75" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="427,912,547,941"/><area shape="rect" id="node82" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="212,912,297,941"/><area shape="rect" id="node86" href="group__commandwrappers.html#gadba8c59ba260dd39f615bc22ca78e1af" title="drush_shell_exec_output" alt="" coords="172,1153,337,1183"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="185,842,324,889"/><area shape="rect" id="node96" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="184,1067,325,1096"/><area shape="rect" id="node5" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1219,915,1389,944"/><area shape="rect" id="node7" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="1001,861,1167,891"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="836,740,951,769"/><area shape="rect" id="node10" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1240,861,1368,891"/><area shape="rect" id="node20" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="2167,760,2279,789"/><area shape="rect" id="node23" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1965,244,2043,273"/><area shape="rect" id="node38" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="1009,553,1159,583"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2145,296,2300,325"/><area shape="rect" id="node31" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1937,1047,2071,1094"/><area shape="rect" id="node33" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2151,1168,2295,1197"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2349,1168,2544,1197"/><area shape="rect" id="node40" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1689,504,1847,533"/><area shape="rect" id="node43" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1692,347,1844,376"/><area shape="rect" id="node45" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1217,427,1391,456"/><area shape="rect" id="node67" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1217,605,1391,635"/><area shape="rect" id="node47" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1673,400,1863,429"/><area shape="rect" id="node51" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1467,349,1597,379"/><area shape="rect" id="node63" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1445,296,1619,325"/><area shape="rect" id="node49" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1913,400,2095,429"/><area shape="rect" id="node69" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1441,605,1623,635"/><area shape="rect" id="node77" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="647,909,775,939"/><area shape="rect" id="node80" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="636,963,785,992"/><area shape="rect" id="node88" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="388,1187,585,1216"/><area shape="rect" id="node93" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="405,842,568,889"/><area shape="rect" id="node98" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="408,1117,565,1163"/><area shape="rect" id="node100" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="835,1117,952,1147"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa235e973665b628a3301129a4967a351"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_register_post_sync_op </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$query</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Call from a pre-sql-sync hook to register an sql query to be executed in the post-sql-sync hook. </p>
<dl class="section see"><dt>See Also</dt><dd>drush_sql_pre_sql_sync() and </dd>
<dd>
drush_sql_post_sql_sync().</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$id</td><td>String containing an identifier representing this operation. This id is not actually used at the moment, it is just used to fufill the contract of drush contexts. </td></tr>
    <tr><td class="paramname">$message</td><td>String with the confirmation message that describes to the user what the post-sync operation is going to do. This confirmation message is printed out just before the user is asked whether or not the sql-sync operation should be continued. </td></tr>
    <tr><td class="paramname">$query</td><td>String containing the sql query to execute. If no query is provided, then the confirmation message will be displayed to the user, but no action will be taken in the post-sync hook. This is useful for drush modules that wish to provide their own post-sync hooks to fix up the target database in other ways (e.g. through Drupal APIs). </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00602">602</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>.</p>

<p>Referenced by <a class="el" href="drush_8api_8php_source.html#l00267">hook_drush_sql_sync_sanitize()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00694">sql_drush_sql_sync_sanitize()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_aa235e973665b628a3301129a4967a351_cgraph.png" border="0" usemap="#sql_8drush_8inc_aa235e973665b628a3301129a4967a351_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_aa235e973665b628a3301129a4967a351_cgraph" id="sql_8drush_8inc_aa235e973665b628a3301129a4967a351_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="361,13,489,43"/><area shape="rect" id="node5" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="183,39,311,68"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_aa235e973665b628a3301129a4967a351_icgraph.png" border="0" usemap="#sql_8drush_8inc_aa235e973665b628a3301129a4967a351_icgraph" alt=""/></div>
<map name="sql_8drush_8inc_aa235e973665b628a3301129a4967a351_icgraph" id="sql_8drush_8inc_aa235e973665b628a3301129a4967a351_icgraph">
<area shape="rect" id="node3" href="group__hooks.html#gab01f27f1d336baa4dad089307e79f575" title="hook_drush_sql_sync\l_sanitize" alt="" coords="183,5,329,51"/><area shape="rect" id="node5" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="188,74,324,121"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9e45958fb554a3f6049ee18c857207af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sql_sanitize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Run's the sanitization operations on the current database.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__hooks.html#gab01f27f1d336baa4dad089307e79f575">hook_drush_sql_sync_sanitize()</a> for adding custom sanitize routines. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00537">537</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="sql_8drush_8inc_source.html#l00616">_drush_sql_get_post_sync_messages()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00088">DRUSH_BOOTSTRAP_DRUPAL_DATABASE</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00326">drush_bootstrap_max()</a>, <a class="el" href="includes_2command_8inc_source.html#l01251">drush_command_invoke_all()</a>, <a class="el" href="drush_8inc_source.html#l00375">drush_confirm()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l00063">drush_include()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>, <a class="el" href="drush_8inc_source.html#l01797">drush_user_abort()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a9e45958fb554a3f6049ee18c857207af_cgraph.png" border="0" usemap="#sql_8drush_8inc_a9e45958fb554a3f6049ee18c857207af_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a9e45958fb554a3f6049ee18c857207af_cgraph" id="sql_8drush_8inc_a9e45958fb554a3f6049ee18c857207af_cgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a96b928aad1ddc72f4cfd2d3058baf123" title="_drush_sql_get_post\l_sync_messages" alt="" coords="1445,93,1587,140"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2367,651,2495,680"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1733,650,1771,679"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1921,1401,2055,1448"/><area shape="rect" id="node16" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="581,930,728,959"/><area shape="rect" id="node53" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1897,388,2079,418"/><area shape="rect" id="node79" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="201,1207,305,1236"/><area shape="rect" id="node83" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="612,1259,697,1288"/><area shape="rect" id="node85" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="796,1236,916,1266"/><area shape="rect" id="node97" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="401,1514,503,1543"/><area shape="rect" id="node101" href="sql_8drush_8inc.html#a9eaa40f9c67b33ac31e8fd74f707ea10" title="drush_sql_bootstrap\l_further" alt="" coords="184,1054,323,1101"/><area shape="rect" id="node107" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="584,1324,725,1354"/><area shape="rect" id="node115" href="group__errorhandling.html#ga366aaafdf8c774a58653c64a65b6d91c" title="drush_user_abort" alt="" coords="1007,1086,1129,1115"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2135,1323,2279,1352"/><area shape="rect" id="node13" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2333,1323,2528,1352"/><area shape="rect" id="node18" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="1203,880,1373,910"/><area shape="rect" id="node20" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="985,1032,1151,1062"/><area shape="rect" id="node27" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="799,803,913,832"/><area shape="rect" id="node23" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1224,934,1352,963"/><area shape="rect" id="node32" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="2151,854,2263,883"/><area shape="rect" id="node35" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1949,676,2027,706"/><area shape="rect" id="node42" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="993,572,1143,602"/><area shape="rect" id="node58" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1696,286,1808,315"/><area shape="rect" id="node38" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2129,572,2284,602"/><area shape="rect" id="node44" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1673,572,1831,602"/><area shape="rect" id="node47" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1676,339,1828,368"/><area shape="rect" id="node49" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="1201,444,1375,474"/><area shape="rect" id="node71" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="1201,624,1375,654"/><area shape="rect" id="node51" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1657,392,1847,422"/><area shape="rect" id="node55" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1451,366,1581,395"/><area shape="rect" id="node67" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="1429,419,1603,448"/><area shape="rect" id="node73" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1425,624,1607,654"/><area shape="rect" id="node81" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="385,1207,519,1236"/><area shape="rect" id="node87" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1004,1240,1132,1270"/><area shape="rect" id="node90" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="993,1294,1143,1323"/><area shape="rect" id="node104" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="371,934,533,981"/><area shape="rect" id="node109" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="777,1289,935,1336"/><area shape="rect" id="node111" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="797,1410,915,1439"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a914168c58c63d217348013ba39f9c133"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sql_drush_command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implementation of <a class="el" href="drush_8api_8php.html#ad8372d595205e79e81d7700f4f59b31c">hook_drush_command()</a>. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00025">25</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00041">DRUSH_BOOTSTRAP_DRUSH</a>.</p>

</div>
</div>
<a class="anchor" id="a8a9ff7dfb06fb647e0536745e416cc4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sql_drush_help </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$section</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implementation of hook_drush_help(). </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00011">11</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a8a9ff7dfb06fb647e0536745e416cc4c_cgraph.png" border="0" usemap="#sql_8drush_8inc_a8a9ff7dfb06fb647e0536745e416cc4c_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a8a9ff7dfb06fb647e0536745e416cc4c_cgraph" id="sql_8drush_8inc_a8a9ff7dfb06fb647e0536745e416cc4c_cgraph">
<area shape="rect" id="node3" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="164,32,201,61"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="252,23,385,70"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="436,32,580,61"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="629,5,824,35"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="663,59,791,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a848630530acc79df2b73d73df3feb131"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sql_drush_help_alter </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implements <a class="el" href="group__hooks.html#ga013c29fff5780421e512662dffb3ee6c">hook_drush_help_alter()</a>. </p>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00250">250</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a848630530acc79df2b73d73df3feb131_cgraph.png" border="0" usemap="#sql_8drush_8inc_a848630530acc79df2b73d73df3feb131_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a848630530acc79df2b73d73df3feb131_cgraph" id="sql_8drush_8inc_a848630530acc79df2b73d73df3feb131_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="196,23,329,70"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="380,32,524,61"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="573,5,768,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="607,59,735,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a31ea6e16a805e81fad22960a6325ec51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sql_drush_sql_sync_sanitize </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implements hook_sql_drush_sql_sync_sanitize.</p>
<p>Sanitize usernames, passwords, and sessions when the &ndash;sanitize option is used. It is also an example of how to write a database sanitizer for sql sync.</p>
<p>To write your own sync hook function, define mymodule_drush_sql_sync_sanitize() and follow the form of this function to add your own database sanitization operations via the register post-sync op function; </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="sql_8drush_8inc.html#aa235e973665b628a3301129a4967a351">drush_sql_register_post_sync_op()</a>. This is the only thing that the sync hook function needs to do; sql-sync takes care of the rest.</dd></dl>
<p>The function below has a lot of logic to process user preferences and generate the correct SQL regardless of whether Postgres, Mysql, Drupal 6/7/8 is in use. A simpler sanitize function that always used default values and only worked with Drupal 6 + mysql appears in the <a class="el" href="drush_8api_8php.html">drush.api.php</a>. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__hooks.html#gab01f27f1d336baa4dad089307e79f575">hook_drush_sql_sync_sanitize()</a>. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00694">694</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00170">drush_bootstrap()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00099">DRUSH_BOOTSTRAP_DRUPAL_FULL</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="sitealias_8inc_source.html#l00176">drush_sitealias_get_record()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00602">drush_sql_register_post_sync_op()</a>, <a class="el" href="output_8inc_source.html#l00145">dt()</a>, and <a class="el" href="sitealias_8inc_source.html#l00837">sitealias_get_databases_from_record()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a31ea6e16a805e81fad22960a6325ec51_cgraph.png" border="0" usemap="#sql_8drush_8inc_a31ea6e16a805e81fad22960a6325ec51_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a31ea6e16a805e81fad22960a6325ec51_cgraph" id="sql_8drush_8inc_a31ea6e16a805e81fad22960a6325ec51_cgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="216,476,331,506"/><area shape="rect" id="node24" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1152,360,1189,390"/><area shape="rect" id="node26" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1340,9,1473,56"/><area shape="rect" id="node70" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="213,1463,333,1492"/><area shape="rect" id="node77" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="420,1092,553,1138"/><area shape="rect" id="node129" href="sql_8drush_8inc.html#aa235e973665b628a3301129a4967a351" title="drush_sql_register\l_post_sync_op" alt="" coords="871,1398,999,1445"/><area shape="rect" id="node134" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="192,62,355,109"/><area shape="rect" id="node5" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ab982885828936c22ba99ab9a7b2981ff" title="_drush_bootstrap_phases" alt="" coords="621,799,792,828"/><area shape="rect" id="node7" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1107,919,1235,948"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1785,807,1913,836"/><area shape="rect" id="node11" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7b119d89395f0ef01bd2392afa4b59af" title="drush_bootstrap_validate" alt="" coords="404,799,569,828"/><area shape="rect" id="node15" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="1569,76,1681,106"/><area shape="rect" id="node18" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1368,538,1445,567"/><area shape="rect" id="node33" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="412,528,561,558"/><area shape="rect" id="node49" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1115,590,1227,619"/><area shape="rect" id="node21" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1548,590,1703,619"/><area shape="rect" id="node28" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1553,20,1697,50"/><area shape="rect" id="node30" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1752,20,1947,50"/><area shape="rect" id="node35" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1092,747,1249,776"/><area shape="rect" id="node38" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1095,462,1247,491"/><area shape="rect" id="node40" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="620,618,793,647"/><area shape="rect" id="node62" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="620,399,793,428"/><area shape="rect" id="node42" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1076,643,1265,672"/><area shape="rect" id="node46" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="869,591,1000,620"/><area shape="rect" id="node58" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="848,695,1021,724"/><area shape="rect" id="node44" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1316,694,1497,723"/><area shape="rect" id="node64" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="844,386,1025,415"/><area shape="rect" id="node72" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="423,1436,551,1466"/><area shape="rect" id="node75" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="412,1490,561,1519"/><area shape="rect" id="node79" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="864,1329,1005,1376"/><area shape="rect" id="node95" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1341,1060,1472,1106"/><area shape="rect" id="node106" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1100,1060,1241,1106"/><area shape="rect" id="node114" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="629,1121,784,1168"/><area shape="rect" id="node82" href="group__filesystemfunctions.html#gafa80199035259ddf98fa300d6f646aa2" title="drush_is_absolute_path" alt="" coords="1328,1456,1485,1486"/><area shape="rect" id="node84" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1561,1430,1689,1459"/><area shape="rect" id="node87" href="sitealias_8inc.html#a6812218f7e86fa00ec5c011768c63f48" title="_drush_sitealias_set\l_record_element" alt="" coords="1100,1268,1241,1314"/><area shape="rect" id="node89" href="includes_2environment_8inc.html#ad6ad0af63156033b1f7fe9a9409eaa7e" title="drush_valid_drupal_root" alt="" coords="1092,1338,1249,1367"/><area shape="rect" id="node92" href="sitealias_8inc.html#a38645e5a6d252e6f419db90c5e7e8739" title="_drush_sitealias_find\l_record_for_local_site" alt="" coords="1096,1129,1245,1176"/><area shape="rect" id="node101" href="sitealias_8inc.html#a03f4ae74a5e4854ac9ffee762cab07f3" title="drush_sitealias_add\l_to_alias_path" alt="" coords="1103,1390,1239,1437"/><area shape="rect" id="node109" href="sitealias_8inc.html#a1f4c706969fbd0d73d227a52d106b5f4" title="_drush_sitealias_add\l_static_defaults" alt="" coords="1099,1198,1243,1245"/><area shape="rect" id="node98" href="includes_2environment_8inc.html#a4f1fda8a8ff6eac8e1182b54e36f4466" title="drush_site_dir_lookup\l_from_hostname" alt="" coords="1552,1014,1699,1061"/><area shape="rect" id="node103" href="group__filesystemfunctions.html#ga4126321d45e8a9c454048869dd42a27c" title="drush_normalize_path" alt="" coords="1332,1402,1481,1431"/><area shape="rect" id="node111" href="sitealias_8inc.html#a96a1545df8b70035ba248ae3cb057d06" title="drush_sitealias_convert\l_db_from_db_url" alt="" coords="1328,1198,1485,1245"/><area shape="rect" id="node116" href="sitealias_8inc.html#a90a54eb940fe80e6e9e3faf12098cbac" title="drush_sitealias_quick\l_lookup_cached_alias\l_by_path" alt="" coords="860,1242,1009,1306"/><area shape="rect" id="node118" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="860,798,1009,845"/><area shape="rect" id="node125" href="sitealias_8inc.html#af5e2a5f32557a495b31c2a72bab9586b" title="drush_sitealias_cache\l_alias_by_path" alt="" coords="860,1172,1009,1218"/><area shape="rect" id="node136" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="639,62,775,109"/><area shape="rect" id="node138" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="859,180,1011,210"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6c0438aa3afaa78282707b5165e386e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sql_sql_sync_complete </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command argument complete callback.</p>
<dl class="section return"><dt>Returns</dt><dd>Array of available site aliases. </dd></dl>

<p>Definition at line <a class="el" href="sql_8drush_8inc_source.html#l00268">268</a> of file <a class="el" href="sql_8drush_8inc_source.html">sql.drush.inc</a>.</p>

<p>References <a class="el" href="sitealias_8drush_8inc_source.html#l00126">_drush_sitealias_all_list()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sql_8drush_8inc_a6c0438aa3afaa78282707b5165e386e4_cgraph.png" border="0" usemap="#sql_8drush_8inc_a6c0438aa3afaa78282707b5165e386e4_cgraph" alt=""/></div>
<map name="sql_8drush_8inc_a6c0438aa3afaa78282707b5165e386e4_cgraph" id="sql_8drush_8inc_a6c0438aa3afaa78282707b5165e386e4_cgraph">
<area shape="rect" id="node3" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="213,109,373,139"/><area shape="rect" id="node5" href="sitealias_8drush_8inc.html#ad809b4041656d1dc016b3fdf954ab066" title="_drush_sitealias_alias_list" alt="" coords="631,57,804,87"/><area shape="rect" id="node9" href="sitealias_8drush_8inc.html#abc87a944e5c22e954bfed08dcd874e02" title="_drush_sitealias_site_list" alt="" coords="1280,229,1448,259"/><area shape="rect" id="node41" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="421,467,581,496"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2591,477,2719,507"/><area shape="rect" id="node12" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="1511,432,1657,461"/><area shape="rect" id="node34" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1937,741,2068,787"/><area shape="rect" id="node14" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="1763,381,1837,411"/><area shape="rect" id="node16" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1964,280,2041,309"/><area shape="rect" id="node22" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1984,125,2021,155"/><area shape="rect" id="node32" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1931,383,2075,430"/><area shape="rect" id="node19" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2349,280,2504,309"/><area shape="rect" id="node24" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="2144,109,2277,155"/><area shape="rect" id="node26" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2355,5,2499,35"/><area shape="rect" id="node28" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="2557,5,2752,35"/><area shape="rect" id="node36" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="2147,952,2275,981"/><area shape="rect" id="node38" href="includes_2environment_8inc.html#a4f1fda8a8ff6eac8e1182b54e36f4466" title="drush_site_dir_lookup\l_from_hostname" alt="" coords="2137,741,2284,787"/><area shape="rect" id="node43" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="643,423,792,470"/><area shape="rect" id="node113" href="sitealias_8inc.html#ab1ae22d0ad42d924ff0f85154f027885" title="_drush_sitealias_add\l_inherited_values" alt="" coords="645,703,789,750"/><area shape="rect" id="node120" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="2127,1221,2295,1267"/><area shape="rect" id="node45" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="1292,475,1436,522"/><area shape="rect" id="node66" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="875,379,1003,408"/><area shape="rect" id="node71" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="853,614,1024,661"/><area shape="rect" id="node110" href="sitealias_8inc.html#aa4c589e4cb7f9ac0dad80ff526444c19" title="_sitealias_array_merge" alt="" coords="861,432,1016,461"/><area shape="rect" id="node47" href="sitealias_8inc.html#aa052aebdf8f0c0037fb910f8d59577b0" title="drush_sitealias_alias_path" alt="" coords="1497,691,1671,720"/><area shape="rect" id="node59" href="includes_2command_8inc.html#a835a66ae60ec33b87f477a6b3dd00547" title="drush_filename_blacklist" alt="" coords="1501,485,1667,515"/><area shape="rect" id="node49" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1729,741,1871,787"/><area shape="rect" id="node52" href="sitealias_8inc.html#a03f4ae74a5e4854ac9ffee762cab07f3" title="drush_sitealias_add\l_to_alias_path" alt="" coords="1732,911,1868,958"/><area shape="rect" id="node54" href="group__filesystemfunctions.html#ga4126321d45e8a9c454048869dd42a27c" title="drush_normalize_path" alt="" coords="1928,924,2077,953"/><area shape="rect" id="node61" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="1728,435,1872,464"/><area shape="rect" id="node63" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1943,504,2063,533"/><area shape="rect" id="node73" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="1297,854,1431,901"/><area shape="rect" id="node93" href="sitealias_8inc.html#a79d866a010f76b7d6ec47ab2a72a0c43" title="drush_sitealias_resolve\l_sitelist" alt="" coords="1073,683,1231,730"/><area shape="rect" id="node96" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1081,614,1223,661"/><area shape="rect" id="node103" href="sitealias_8inc.html#a584dc890dc9cace2320ee31a25e25d43" title="_drush_sitealias_find\l_local_sites" alt="" coords="1080,545,1224,591"/><area shape="rect" id="node75" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="1513,983,1655,1030"/><area shape="rect" id="node88" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="1507,743,1661,790"/><area shape="rect" id="node78" href="group__filesystemfunctions.html#gafa80199035259ddf98fa300d6f646aa2" title="drush_is_absolute_path" alt="" coords="1721,1101,1879,1131"/><area shape="rect" id="node82" href="sitealias_8inc.html#a6812218f7e86fa00ec5c011768c63f48" title="_drush_sitealias_set\l_record_element" alt="" coords="1729,1031,1871,1078"/><area shape="rect" id="node99" href="group__commandwrappers.html#gae0975650ba125212c2666e58729f43cf" title="drush_remote_host" alt="" coords="1297,751,1431,780"/><area shape="rect" id="node101" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1296,681,1432,727"/><area shape="rect" id="node105" href="sitealias_8inc.html#a140c677ea9e7c406a24ad323fd6b4af4" title="_drush_find_local_sites\l_at_root" alt="" coords="1285,545,1443,591"/><area shape="rect" id="node115" href="sitealias_8inc.html#aa09f66b610fd6ea9dd4f65fb66582bd2" title="_drush_sitealias_cache\l_alias" alt="" coords="1505,914,1663,961"/><area shape="rect" id="node122" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="2357,1331,2496,1378"/><area shape="rect" id="node124" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="2571,1309,2739,1339"/><area shape="rect" id="node132" href="includes_2command_8inc.html#ad5dd93fad069d6ba73b3546d26855071" title="drush_command_default\l_options" alt="" coords="2345,1161,2508,1207"/><area shape="rect" id="node126" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="2800,1301,2963,1347"/><area shape="rect" id="node128" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="3011,1309,3203,1339"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:04:59 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>