Drush: Drush\Sql\SqlBase Class Reference

  1. 7.x doxygen/html/classDrush_1_1Sql_1_1SqlBase.html
  2. master doxygen/html/classDrush_1_1Sql_1_1SqlBase.html
Inheritance diagram for Drush\Sql\SqlBase:

Public Member Functions

 __construct ($db_spec=NULL)
 db_spec ()
 command ()
 connect ($hide_password=TRUE)
 dump ($file= '')
 dumpCmd ($table_selection)
 dumpFile ($file)
 query ($query, $input_file=NULL, $result_file= '')
 silent ()
 query_prefix ($query)
 query_format ($query)
 drop ($tables)
 createdb_sql ($dbname, $quoted=FALSE)
 createdb ($quoted=FALSE)
 drop_or_create ()
 db_exists ()
 delete ()
 creds ($hide_password=TRUE)
 scheme ()
 get_expanded_table_selection ()
 listTables ()
 params_to_options ($parameters)
 su ()

Public Attributes

 $db_spec
 $query_extra = ''
 $query_file = '<'

Detailed Description

Definition at line 8 of file SqlBase.php.

Constructor & Destructor Documentation

Drush\Sql\SqlBase::__construct (   $db_spec = NULL)

Typically, SqlBase objects are constructed via drush_sql_get_class().

Definition at line 22 of file SqlBase.php.

Member Function Documentation

Drush\Sql\SqlBase::command ( )

The unix command used to connect to the database.

Returns
string

Reimplemented in Drush\Sql\Sqlpgsql, Drush\Sql\Sqloracle, Drush\Sql\Sqlsqlsrv, Drush\Sql\Sqlmysql, and Drush\Sql\Sqlsqlite.

Definition at line 37 of file SqlBase.php.

Referenced by Drush\Sql\SqlBase\connect(), and Drush\Sql\SqlBase\query().

Here is the caller graph for this function:

Drush\Sql\SqlBase::connect (   $hide_password = TRUE)

A string for connecting to a database.

Parameters
bool$hide_passwordIf TRUE, DBMS should try to hide password from process list. On mysql, that means using –defaults-extra-file to supply the user+password.
Returns
string

Definition at line 48 of file SqlBase.php.

References Drush\Sql\SqlBase\command(), Drush\Sql\SqlBase\creds(), and drush_get_option().

Here is the call graph for this function:

Drush\Sql\SqlBase::createdb (   $quoted = FALSE)

Create a new database.

Parameters
boolean$quotedQuote the database name. Mysql uses backticks to quote which can cause problems in a Windows shell. Set TRUE if the CREATE is not running on the bash command line.
Returns
boolean True if successful, FALSE otherwise.

Reimplemented in Drush\Sql\Sqlsqlite.

Definition at line 256 of file SqlBase.php.

References Drush\Sql\SqlBase\createdb_sql(), Drush\Sql\SqlBase\query(), and Drush\Sql\SqlBase\su().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Drush\Sql\SqlBase::createdb_sql (   $dbname,
  $quoted = FALSE 
)

Build a SQL string for dropping and creating a database.

Parameters
stringdbname The database name.
boolean$quotedQuote the database name. Mysql uses backticks to quote which can cause problems in a Windows shell. Set TRUE if the CREATE is not running on the bash command line.

Reimplemented in Drush\Sql\Sqlmysql, Drush\Sql\Sqlpgsql, and Drush\Sql\Sqlsqlite.

Definition at line 245 of file SqlBase.php.

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

Here is the caller graph for this function:

Drush\Sql\SqlBase::creds (   $hide_password = TRUE)

Build a fragment connection parameters.

Parameters
bool$hide_passwordIf TRUE, DBMS should try to hide password from process list. On mysql, that means using –defaults-extra-file to supply the user+password.
Returns
string

Reimplemented in Drush\Sql\Sqlpgsql, Drush\Sql\Sqlmysql, and Drush\Sql\Sqlsqlite.

Definition at line 296 of file SqlBase.php.

Referenced by Drush\Sql\SqlBase\connect(), and Drush\Sql\SqlBase\query().

Here is the caller graph for this function:

Drush\Sql\SqlBase::drop (   $tables)

Drop specified database.

Parameters
array$tablesAn array of table names
Returns
boolean True if successful, FALSE if failed.

Reimplemented in Drush\Sql\Sqlsqlite.

Definition at line 227 of file SqlBase.php.

References Drush\Sql\SqlBase\query().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Drush\Sql\SqlBase::drop_or_create ( )

Drop all tables (if DB exists) or CREATE target database.

return boolean TRUE or FALSE depending on success.

Definition at line 270 of file SqlBase.php.

References Drush\Sql\SqlBase\createdb(), Drush\Sql\SqlBase\drop(), and Drush\Sql\SqlBase\listTables().

Here is the call graph for this function:

Drush\Sql\SqlBase::get_expanded_table_selection ( )

Get a list of all table names and expand input that may contain wildcards (*) if necessary so that the array returned only contains valid table names i.e. actual tables that exist, without a wildcard.

Returns
array An array of tables with each table name in the appropriate element of the array.

Definition at line 315 of file SqlBase.php.

References _drush_sql_expand_and_filter_tables(), drush_sql_get_table_selection(), and Drush\Sql\SqlBase\listTables().

Here is the call graph for this function:

Drush\Sql\SqlBase::listTables ( )

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

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

Reimplemented in Drush\Sql\Sqlmysql, Drush\Sql\Sqlpgsql, Drush\Sql\Sqloracle, Drush\Sql\Sqlsqlite, and Drush\Sql\Sqlsqlsrv.

Definition at line 337 of file SqlBase.php.

Referenced by Drush\Sql\SqlBase\drop_or_create(), and Drush\Sql\SqlBase\get_expanded_table_selection().

Here is the caller graph for this function:

Drush\Sql\SqlBase::query (   $query,
  $input_file = NULL,
  $result_file = '' 
)

Execute a SQL query.

Note: This is an API function. Try to avoid using drush_get_option() and instead pass params in. If you don't want to query results to print during –debug then provide a $result_file whose value can be drush_bit_bucket().

Parameters
string$queryThe SQL to be executed. Should be NULL if $input_file is provided.
string$input_fileA path to a file containing the SQL to be executed.
string$result_fileA path to save query results to. Can be drush_bit_bucket() if desired.
Returns
TRUE on success, FALSE on failure

Definition at line 144 of file SqlBase.php.

References Drush\Sql\SqlBase\command(), Drush\Sql\SqlBase\creds(), drush_file_is_tarball(), drush_get_context(), drush_get_option(), drush_log(), drush_op(), drush_save_data_to_temp_file(), drush_set_error(), drush_shell_exec(), and dt().

Referenced by Drush\Sql\SqlBase\createdb(), Drush\Sql\Sqlsqlite\drop(), Drush\Sql\SqlBase\drop(), Drush\Sql\Sqlsqlsrv\listTables(), Drush\Sql\Sqlsqlite\listTables(), Drush\Sql\Sqloracle\listTables(), Drush\Sql\Sqlpgsql\listTables(), and Drush\Sql\Sqlmysql\listTables().

Here is the call graph for this function:

Here is the caller graph for this function:

Drush\Sql\SqlBase::scheme ( )

The active database driver.

Returns
string

Definition at line 302 of file SqlBase.php.

Adjust DB connection with superuser credentials if provided.

The options 'db-su' and 'db-su-pw' will be retreived from the specified site alias record, if it exists and contains those items. If it does not, they will be fetched via drush_get_option.

Note that in the context of sql-sync, the site alias record will be taken from the target alias (e.g. drush sql-sync @source @target), which will be overlayed with any options that begin with 'target-'; therefore, the commandline options 'target-db-su' and 'target-db-su-pw' may also affect the operation of this function.

Returns
null

Definition at line 373 of file SqlBase.php.

References drush_get_option().

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

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file:

File

doxygen/html/classDrush_1_1Sql_1_1SqlBase.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: Drush\Sql\SqlBase Class 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="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</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="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#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>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><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"><b>Drush</b></li><li class="navelem"><b>Sql</b></li><li class="navelem"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html">SqlBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classDrush_1_1Sql_1_1SqlBase-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Drush\Sql\SqlBase Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Drush\Sql\SqlBase:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase__inherit__graph.png" border="0" usemap="#Drush_0CSql_0CSqlBase_inherit__map" alt="Inheritance graph"/></div>
<map name="Drush_0CSql_0CSqlBase_inherit__map" id="Drush_0CSql_0CSqlBase_inherit__map">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1Sqlmysql.html" title="Drush\\Sql\\Sqlmysql" alt="" coords="187,5,325,35"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1Sqloracle.html" title="Drush\\Sql\\Sqloracle" alt="" coords="187,59,325,88"/><area shape="rect" id="node7" href="classDrush_1_1Sql_1_1Sqlpgsql.html" title="Drush\\Sql\\Sqlpgsql" alt="" coords="189,112,323,141"/><area shape="rect" id="node9" href="classDrush_1_1Sql_1_1Sqlsqlite.html" title="Drush\\Sql\\Sqlsqlite" alt="" coords="189,165,323,195"/><area shape="rect" id="node11" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html" title="Drush\\Sql\\Sqlsqlsrv" alt="" coords="187,219,325,248"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1cc13b953fd93a39669e536ba2929f9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a1cc13b953fd93a39669e536ba2929f9a">__construct</a> ($db_spec=NULL)</td></tr>
<tr class="memitem:a858fa8229847de87d506c7122b567a0d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a858fa8229847de87d506c7122b567a0d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>db_spec</b> ()</td></tr>
<tr class="memitem:ac29907915d00435d999c4fe5fd611815"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815">command</a> ()</td></tr>
<tr class="memitem:aa5b21b27ff4dca05535fdbac5d0c603d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#aa5b21b27ff4dca05535fdbac5d0c603d">connect</a> ($hide_password=TRUE)</td></tr>
<tr class="memitem:ac34a446ba29c98b448558c47d5b6b504"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac34a446ba29c98b448558c47d5b6b504"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dump</b> ($file= '')</td></tr>
<tr class="memitem:a478f91ffc09a45f178447253df2371b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a478f91ffc09a45f178447253df2371b7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dumpCmd</b> ($table_selection)</td></tr>
<tr class="memitem:a356a2b294c74818b6c8e5a51589943eb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a356a2b294c74818b6c8e5a51589943eb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dumpFile</b> ($file)</td></tr>
<tr class="memitem:a8b9bca31c78d0fbd9e688985d2c986c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4">query</a> ($query, $input_file=NULL, $result_file= '')</td></tr>
<tr class="memitem:a493dbf561da53a0aec3acc174ca7fe36"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a493dbf561da53a0aec3acc174ca7fe36"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>silent</b> ()</td></tr>
<tr class="memitem:aacc53bf685da84cca6a19cc3061d8576"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aacc53bf685da84cca6a19cc3061d8576"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>query_prefix</b> ($<a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4">query</a>)</td></tr>
<tr class="memitem:aff085fd336a133444aa050e5c139fef7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff085fd336a133444aa050e5c139fef7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>query_format</b> ($<a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4">query</a>)</td></tr>
<tr class="memitem:aaa0a1bf3fe7212db17d716fe02d144c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#aaa0a1bf3fe7212db17d716fe02d144c4">drop</a> ($tables)</td></tr>
<tr class="memitem:aa2ae58c2f7e5c50e0d786f5d4c47dca3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#aa2ae58c2f7e5c50e0d786f5d4c47dca3">createdb_sql</a> ($dbname, $quoted=FALSE)</td></tr>
<tr class="memitem:ab535d0d2d28dcbae9c83f1f62328a3a5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5">createdb</a> ($quoted=FALSE)</td></tr>
<tr class="memitem:a68828a0633827f0dde26a869e4b89e86"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86">drop_or_create</a> ()</td></tr>
<tr class="memitem:a42b6dfa6840119019b732272e609c6b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42b6dfa6840119019b732272e609c6b8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>db_exists</b> ()</td></tr>
<tr class="memitem:ab979a51ea0890e00b09d3e7476d41e69"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab979a51ea0890e00b09d3e7476d41e69"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>delete</b> ()</td></tr>
<tr class="memitem:a91bcf21091c60d1c3a85cc1fa07769b5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5">creds</a> ($hide_password=TRUE)</td></tr>
<tr class="memitem:a6c1a1bf889249c917448f356650e62d9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a6c1a1bf889249c917448f356650e62d9">scheme</a> ()</td></tr>
<tr class="memitem:af5a9a4ba79d9d75c8230d386ff50545a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#af5a9a4ba79d9d75c8230d386ff50545a">get_expanded_table_selection</a> ()</td></tr>
<tr class="memitem:aacc1a40283305b7ee2e1395c27e3971d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#aacc1a40283305b7ee2e1395c27e3971d">listTables</a> ()</td></tr>
<tr class="memitem:aefac6f0d931a524d65ed61a5b01fd705"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefac6f0d931a524d65ed61a5b01fd705"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>params_to_options</b> ($parameters)</td></tr>
<tr class="memitem:acc920b5d18da0987a8888953138c107d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#acc920b5d18da0987a8888953138c107d">su</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a930a43e2c3e1c6c742fb34baa6824d05"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a930a43e2c3e1c6c742fb34baa6824d05"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$db_spec</b></td></tr>
<tr class="memitem:a4dc9ad50bdef8aa7fcb0bae8f9f6c953"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dc9ad50bdef8aa7fcb0bae8f9f6c953"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$query_extra</b> = ''</td></tr>
<tr class="memitem:a5988dcdad198b1f929fad44e8ac73fba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5988dcdad198b1f929fad44e8ac73fba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$query_file</b> = '&lt;'</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00008">8</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>
</div><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1cc13b953fd93a39669e536ba2929f9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::__construct </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>Typically, <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html">SqlBase</a> objects are constructed via <a class="el" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0">drush_sql_get_class()</a>. </p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00022">22</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

</div>
</div>
<h2>Member Function Documentation</h2>
<a class="anchor" id="ac29907915d00435d999c4fe5fd611815"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The unix command used to connect to the database. </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a6e7b46318638ad8110b8e58b217771df">Drush\Sql\Sqlpgsql</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqloracle.html#a8612e2c4300c3e68639d8b888fac512c">Drush\Sql\Sqloracle</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a6fd27090408cd706ade2bf1865332aca">Drush\Sql\Sqlsqlsrv</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#a02d1e4138f0fed755315a360ee1c9712">Drush\Sql\Sqlmysql</a>, and <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a530d5cd5584cfb89a6dc492654a88e35">Drush\Sql\Sqlsqlite</a>.</p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00037">37</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>Referenced by <a class="el" href="SqlBase_8php_source.html#l00048">Drush\Sql\SqlBase\connect()</a>, and <a class="el" href="SqlBase_8php_source.html#l00144">Drush\Sql\SqlBase\query()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_ac29907915d00435d999c4fe5fd611815_icgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_ac29907915d00435d999c4fe5fd611815_icgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_ac29907915d00435d999c4fe5fd611815_icgraph" id="classDrush_1_1Sql_1_1SqlBase_ac29907915d00435d999c4fe5fd611815_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#aa5b21b27ff4dca05535fdbac5d0c603d" title="Drush\\Sql\\SqlBase\\connect" alt="" coords="249,171,431,200"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4" title="Drush\\Sql\\SqlBase\\query" alt="" coords="256,224,424,253"/><area shape="rect" id="node7" href="classDrush_1_1Sql_1_1SqlBase.html#aaa0a1bf3fe7212db17d716fe02d144c4" title="Drush\\Sql\\SqlBase\\drop" alt="" coords="492,5,655,35"/><area shape="rect" id="node11" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="480,59,667,88"/><area shape="rect" id="node14" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890" title="Drush\\Sql\\Sqlmysql\l\\listTables" alt="" coords="504,111,643,158"/><area shape="rect" id="node16" href="classDrush_1_1Sql_1_1Sqloracle.html#accf155c63c035d3ab54f9d0d24841ccc" title="Drush\\Sql\\Sqloracle\l\\listTables" alt="" coords="504,181,643,227"/><area shape="rect" id="node18" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a3ba61916404cdef744d23c08d2e395b6" title="Drush\\Sql\\Sqlpgsql\l\\listTables" alt="" coords="507,250,640,297"/><area shape="rect" id="node20" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a62317dd9072f29c1af6a7bdd4ae42673" title="Drush\\Sql\\Sqlsqlite\l\\listTables" alt="" coords="507,319,640,366"/><area shape="rect" id="node22" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a98f4310a19c3a9ffb485588699d88d9b" title="Drush\\Sql\\Sqlsqlite\\drop" alt="" coords="492,389,655,419"/><area shape="rect" id="node24" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a765255867524cc6404b302f39e04057c" title="Drush\\Sql\\Sqlsqlsrv\l\\listTables" alt="" coords="504,442,643,489"/><area shape="rect" id="node9" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="715,23,877,70"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa5b21b27ff4dca05535fdbac5d0c603d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::connect </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$hide_password</em> = <code>TRUE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A string for connecting to a database.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$hide_password</td><td>If TRUE, DBMS should try to hide password from process list. On mysql, that means using &ndash;defaults-extra-file to supply the user+password.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00048">48</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>References <a class="el" href="SqlBase_8php_source.html#l00037">Drush\Sql\SqlBase\command()</a>, <a class="el" href="SqlBase_8php_source.html#l00296">Drush\Sql\SqlBase\creds()</a>, and <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_aa5b21b27ff4dca05535fdbac5d0c603d_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_aa5b21b27ff4dca05535fdbac5d0c603d_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_aa5b21b27ff4dca05535fdbac5d0c603d_cgraph" id="classDrush_1_1Sql_1_1SqlBase_aa5b21b27ff4dca05535fdbac5d0c603d_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815" title="Drush\\Sql\\SqlBase\\command" alt="" coords="237,5,432,35"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5" title="Drush\\Sql\\SqlBase\\creds" alt="" coords="251,59,419,88"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="275,112,395,141"/><area shape="rect" id="node9" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="492,59,620,88"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="481,112,631,141"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="492,165,620,195"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab535d0d2d28dcbae9c83f1f62328a3a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::createdb </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$quoted</em> = <code>FALSE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a new database.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">boolean</td><td class="paramname">$quoted</td><td>Quote the database name. Mysql uses backticks to quote which can cause problems in a Windows shell. Set TRUE if the CREATE is not running on the bash command line. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>boolean True if successful, FALSE otherwise. </dd></dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a228915e396c86dc94e6cc3eb3e778b1e">Drush\Sql\Sqlsqlite</a>.</p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00256">256</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>References <a class="el" href="SqlBase_8php_source.html#l00245">Drush\Sql\SqlBase\createdb_sql()</a>, <a class="el" href="SqlBase_8php_source.html#l00144">Drush\Sql\SqlBase\query()</a>, and <a class="el" href="SqlBase_8php_source.html#l00373">Drush\Sql\SqlBase\su()</a>.</p>

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

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_ab535d0d2d28dcbae9c83f1f62328a3a5_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_ab535d0d2d28dcbae9c83f1f62328a3a5_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_ab535d0d2d28dcbae9c83f1f62328a3a5_cgraph" id="classDrush_1_1Sql_1_1SqlBase_ab535d0d2d28dcbae9c83f1f62328a3a5_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#aa2ae58c2f7e5c50e0d786f5d4c47dca3" title="Drush\\Sql\\SqlBase\\createdb_sql" alt="" coords="240,288,451,317"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4" title="Drush\\Sql\\SqlBase\\query" alt="" coords="261,341,429,371"/><area shape="rect" id="node103" href="classDrush_1_1Sql_1_1SqlBase.html#acc920b5d18da0987a8888953138c107d" title="Drush\\Sql\\SqlBase\\su" alt="" coords="271,685,420,715"/><area shape="rect" id="node7" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="743,260,879,289"/><area shape="rect" id="node11" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1616,263,1693,292"/><area shape="rect" id="node17" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2204,641,2332,671"/><area shape="rect" id="node26" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1423,443,1460,472"/><area shape="rect" id="node38" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="535,769,657,799"/><area shape="rect" id="node47" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1381,951,1501,980"/><area shape="rect" id="node58" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1385,591,1497,620"/><area shape="rect" id="node66" href="group__filesystemfunctions.html#gadb66635fa63012fb084f8e96a392776d" title="drush_save_data_to\l_temp_file" alt="" coords="527,418,665,465"/><area shape="rect" id="node89" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815" title="Drush\\Sql\\SqlBase\\command" alt="" coords="499,59,693,88"/><area shape="rect" id="node91" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5" title="Drush\\Sql\\SqlBase\\creds" alt="" coords="512,163,680,192"/><area shape="rect" id="node96" href="drush_8inc.html#acebe9ed4e4825e6d33ab8dff2157b676" title="drush_op" alt="" coords="1211,315,1285,344"/><area shape="rect" id="node9" href="drush_8inc.html#a5b8fa8d7855539af7485408e05a941c0" title="drush_attempt_mime\l_content_type" alt="" coords="1176,245,1320,291"/><area shape="rect" id="node13" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1825,263,1911,292"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1995,315,2149,344"/><area shape="rect" id="node20" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="2024,5,2120,35"/><area shape="rect" id="node22" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2217,32,2319,61"/><area shape="rect" id="node24" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2383,32,2516,61"/><area shape="rect" id="node28" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1588,418,1721,465"/><area shape="rect" id="node36" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1585,488,1724,517"/><area shape="rect" id="node30" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1796,427,1940,456"/><area shape="rect" id="node32" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1989,59,2155,88"/><area shape="rect" id="node40" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="745,796,876,825"/><area shape="rect" id="node42" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="929,796,1127,825"/><area shape="rect" id="node45" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1205,899,1291,928"/><area shape="rect" id="node54" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="951,743,1105,772"/><area shape="rect" id="node49" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1591,949,1719,979"/><area shape="rect" id="node51" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1580,1003,1729,1032"/><area shape="rect" id="node61" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1564,592,1745,621"/><area shape="rect" id="node68" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="753,427,868,456"/><area shape="rect" id="node70" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="973,539,1083,568"/><area shape="rect" id="node84" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="1184,418,1312,465"/><area shape="rect" id="node72" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1825,695,1911,724"/><area shape="rect" id="node78" href="startup_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1184,643,1312,672"/><area shape="rect" id="node80" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="1201,539,1295,568"/><area shape="rect" id="node75" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="2008,693,2136,723"/><area shape="rect" id="node98" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1369,322,1513,369"/></map>
</div>
</p>

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

</div>
</div>
<a class="anchor" id="aa2ae58c2f7e5c50e0d786f5d4c47dca3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::createdb_sql </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$dbname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$quoted</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build a SQL string for dropping and creating a database.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype"></td><td class="paramname">string</td><td>dbname The database name. </td></tr>
    <tr><td class="paramtype">boolean</td><td class="paramname">$quoted</td><td>Quote the database name. Mysql uses backticks to quote which can cause problems in a Windows shell. Set TRUE if the CREATE is not running on the bash command line. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#a89c709c6d185d4464d2764b9beb608d5">Drush\Sql\Sqlmysql</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a2f27742b5096467e00300a324ea04bfc">Drush\Sql\Sqlpgsql</a>, and <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a82f2993d80eaafdf6362d1cf4cb9c932">Drush\Sql\Sqlsqlite</a>.</p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00245">245</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

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

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_aa2ae58c2f7e5c50e0d786f5d4c47dca3_icgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_aa2ae58c2f7e5c50e0d786f5d4c47dca3_icgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_aa2ae58c2f7e5c50e0d786f5d4c47dca3_icgraph" id="classDrush_1_1Sql_1_1SqlBase_aa2ae58c2f7e5c50e0d786f5d4c47dca3_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="264,13,451,43"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="499,5,661,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a91bcf21091c60d1c3a85cc1fa07769b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::creds </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$hide_password</em> = <code>TRUE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build a fragment connection parameters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">bool</td><td class="paramname">$hide_password</td><td>If TRUE, DBMS should try to hide password from process list. On mysql, that means using &ndash;defaults-extra-file to supply the user+password. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a1dafef29dda2913faf76dec79df4a5ea">Drush\Sql\Sqlpgsql</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#adae34282f0fc42e0b854c98dc61a1795">Drush\Sql\Sqlmysql</a>, and <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a617f302873c811935edc531968098a46">Drush\Sql\Sqlsqlite</a>.</p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00296">296</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>Referenced by <a class="el" href="SqlBase_8php_source.html#l00048">Drush\Sql\SqlBase\connect()</a>, and <a class="el" href="SqlBase_8php_source.html#l00144">Drush\Sql\SqlBase\query()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_a91bcf21091c60d1c3a85cc1fa07769b5_icgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_a91bcf21091c60d1c3a85cc1fa07769b5_icgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_a91bcf21091c60d1c3a85cc1fa07769b5_icgraph" id="classDrush_1_1Sql_1_1SqlBase_a91bcf21091c60d1c3a85cc1fa07769b5_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#aa5b21b27ff4dca05535fdbac5d0c603d" title="Drush\\Sql\\SqlBase\\connect" alt="" coords="225,171,407,200"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4" title="Drush\\Sql\\SqlBase\\query" alt="" coords="232,224,400,253"/><area shape="rect" id="node7" href="classDrush_1_1Sql_1_1SqlBase.html#aaa0a1bf3fe7212db17d716fe02d144c4" title="Drush\\Sql\\SqlBase\\drop" alt="" coords="468,5,631,35"/><area shape="rect" id="node11" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="456,59,643,88"/><area shape="rect" id="node14" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890" title="Drush\\Sql\\Sqlmysql\l\\listTables" alt="" coords="480,111,619,158"/><area shape="rect" id="node16" href="classDrush_1_1Sql_1_1Sqloracle.html#accf155c63c035d3ab54f9d0d24841ccc" title="Drush\\Sql\\Sqloracle\l\\listTables" alt="" coords="480,181,619,227"/><area shape="rect" id="node18" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a3ba61916404cdef744d23c08d2e395b6" title="Drush\\Sql\\Sqlpgsql\l\\listTables" alt="" coords="483,250,616,297"/><area shape="rect" id="node20" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a62317dd9072f29c1af6a7bdd4ae42673" title="Drush\\Sql\\Sqlsqlite\l\\listTables" alt="" coords="483,319,616,366"/><area shape="rect" id="node22" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a98f4310a19c3a9ffb485588699d88d9b" title="Drush\\Sql\\Sqlsqlite\\drop" alt="" coords="468,389,631,419"/><area shape="rect" id="node24" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a765255867524cc6404b302f39e04057c" title="Drush\\Sql\\Sqlsqlsrv\l\\listTables" alt="" coords="480,442,619,489"/><area shape="rect" id="node9" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="691,23,853,70"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aaa0a1bf3fe7212db17d716fe02d144c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::drop </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$tables</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drop specified 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 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>boolean True if successful, FALSE if failed. </dd></dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a98f4310a19c3a9ffb485588699d88d9b">Drush\Sql\Sqlsqlite</a>.</p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00227">227</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>References <a class="el" href="SqlBase_8php_source.html#l00144">Drush\Sql\SqlBase\query()</a>.</p>

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

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_aaa0a1bf3fe7212db17d716fe02d144c4_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_aaa0a1bf3fe7212db17d716fe02d144c4_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_aaa0a1bf3fe7212db17d716fe02d144c4_cgraph" id="classDrush_1_1Sql_1_1SqlBase_aaa0a1bf3fe7212db17d716fe02d144c4_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4" title="Drush\\Sql\\SqlBase\\query" alt="" coords="217,538,385,568"/><area shape="rect" id="node5" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="679,220,815,249"/><area shape="rect" id="node9" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1483,304,1560,333"/><area shape="rect" id="node15" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2089,408,2217,437"/><area shape="rect" id="node24" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1281,214,1319,244"/><area shape="rect" id="node36" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="864,705,987,734"/><area shape="rect" id="node45" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1887,693,2007,722"/><area shape="rect" id="node56" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1244,408,1356,437"/><area shape="rect" id="node64" href="group__filesystemfunctions.html#gadb66635fa63012fb084f8e96a392776d" title="drush_save_data_to\l_temp_file" alt="" coords="463,530,601,576"/><area shape="rect" id="node87" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815" title="Drush\\Sql\\SqlBase\\command" alt="" coords="435,822,629,852"/><area shape="rect" id="node89" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5" title="Drush\\Sql\\SqlBase\\creds" alt="" coords="448,876,616,905"/><area shape="rect" id="node94" href="drush_8inc.html#acebe9ed4e4825e6d33ab8dff2157b676" title="drush_op" alt="" coords="1069,102,1144,132"/><area shape="rect" id="node7" href="drush_8inc.html#a5b8fa8d7855539af7485408e05a941c0" title="drush_attempt_mime\l_content_type" alt="" coords="1035,206,1179,252"/><area shape="rect" id="node11" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1700,304,1785,333"/><area shape="rect" id="node13" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1869,356,2024,385"/><area shape="rect" id="node18" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1899,201,1995,230"/><area shape="rect" id="node20" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2103,174,2204,204"/><area shape="rect" id="node22" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2279,174,2412,204"/><area shape="rect" id="node26" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1455,163,1588,210"/><area shape="rect" id="node34" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1452,233,1591,262"/><area shape="rect" id="node28" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1671,172,1815,201"/><area shape="rect" id="node30" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1864,148,2029,177"/><area shape="rect" id="node38" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="1235,668,1365,697"/><area shape="rect" id="node40" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="1423,614,1620,644"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1700,693,1785,722"/><area shape="rect" id="node52" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="1444,668,1599,697"/><area shape="rect" id="node47" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="2089,720,2217,749"/><area shape="rect" id="node49" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="2079,666,2228,696"/><area shape="rect" id="node59" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1431,460,1612,489"/><area shape="rect" id="node66" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="689,538,804,568"/><area shape="rect" id="node68" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="871,482,980,512"/><area shape="rect" id="node82" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="1043,584,1171,631"/><area shape="rect" id="node70" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1700,510,1785,540"/><area shape="rect" id="node76" href="startup_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1043,430,1171,460"/><area shape="rect" id="node78" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="1060,377,1153,406"/><area shape="rect" id="node73" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1883,510,2011,540"/><area shape="rect" id="node96" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1228,94,1372,140"/></map>
</div>
</p>

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

</div>
</div>
<a class="anchor" id="a68828a0633827f0dde26a869e4b89e86"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::drop_or_create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drop all tables (if DB exists) or CREATE target database.</p>
<p>return boolean TRUE or FALSE depending on success. </p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00270">270</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>References <a class="el" href="SqlBase_8php_source.html#l00256">Drush\Sql\SqlBase\createdb()</a>, <a class="el" href="SqlBase_8php_source.html#l00227">Drush\Sql\SqlBase\drop()</a>, and <a class="el" href="SqlBase_8php_source.html#l00337">Drush\Sql\SqlBase\listTables()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_a68828a0633827f0dde26a869e4b89e86_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_a68828a0633827f0dde26a869e4b89e86_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_a68828a0633827f0dde26a869e4b89e86_cgraph" id="classDrush_1_1Sql_1_1SqlBase_a68828a0633827f0dde26a869e4b89e86_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="220,604,407,633"/><area shape="rect" id="node108" href="classDrush_1_1Sql_1_1SqlBase.html#aaa0a1bf3fe7212db17d716fe02d144c4" title="Drush\\Sql\\SqlBase\\drop" alt="" coords="232,550,395,580"/><area shape="rect" id="node111" href="classDrush_1_1Sql_1_1SqlBase.html#aacc1a40283305b7ee2e1395c27e3971d" title="Drush\\Sql\\SqlBase\\listTables" alt="" coords="217,657,409,686"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#aa2ae58c2f7e5c50e0d786f5d4c47dca3" title="Drush\\Sql\\SqlBase\\createdb_sql" alt="" coords="459,604,669,633"/><area shape="rect" id="node7" href="classDrush_1_1Sql_1_1SqlBase.html#a8b9bca31c78d0fbd9e688985d2c986c4" title="Drush\\Sql\\SqlBase\\query" alt="" coords="480,550,648,580"/><area shape="rect" id="node105" href="classDrush_1_1Sql_1_1SqlBase.html#acc920b5d18da0987a8888953138c107d" title="Drush\\Sql\\SqlBase\\su" alt="" coords="489,785,639,814"/><area shape="rect" id="node9" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="961,220,1097,249"/><area shape="rect" id="node13" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1835,322,1912,352"/><area shape="rect" id="node19" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2423,524,2551,553"/><area shape="rect" id="node28" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1641,214,1679,244"/><area shape="rect" id="node40" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="753,678,876,708"/><area shape="rect" id="node49" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1600,861,1720,890"/><area shape="rect" id="node60" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1604,473,1716,502"/><area shape="rect" id="node68" href="group__filesystemfunctions.html#gadb66635fa63012fb084f8e96a392776d" title="drush_save_data_to\l_temp_file" alt="" coords="745,486,884,532"/><area shape="rect" id="node91" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815" title="Drush\\Sql\\SqlBase\\command" alt="" coords="717,806,912,836"/><area shape="rect" id="node93" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5" title="Drush\\Sql\\SqlBase\\creds" alt="" coords="731,860,899,889"/><area shape="rect" id="node98" href="drush_8inc.html#acebe9ed4e4825e6d33ab8dff2157b676" title="drush_op" alt="" coords="1429,102,1504,132"/><area shape="rect" id="node11" href="drush_8inc.html#a5b8fa8d7855539af7485408e05a941c0" title="drush_attempt_mime\l_content_type" alt="" coords="1395,206,1539,252"/><area shape="rect" id="node15" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="2044,368,2129,397"/><area shape="rect" id="node17" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2213,472,2368,501"/><area shape="rect" id="node22" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="2243,317,2339,346"/><area shape="rect" id="node24" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2436,290,2537,320"/><area shape="rect" id="node26" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2601,290,2735,320"/><area shape="rect" id="node30" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1807,199,1940,246"/><area shape="rect" id="node38" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1804,269,1943,298"/><area shape="rect" id="node32" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2015,264,2159,293"/><area shape="rect" id="node34" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="2208,264,2373,293"/><area shape="rect" id="node42" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="964,705,1095,734"/><area shape="rect" id="node44" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="1148,758,1345,788"/><area shape="rect" id="node47" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1424,809,1509,838"/><area shape="rect" id="node56" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="1169,705,1324,734"/><area shape="rect" id="node51" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1809,860,1937,889"/><area shape="rect" id="node53" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1799,806,1948,836"/><area shape="rect" id="node63" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1783,421,1964,450"/><area shape="rect" id="node70" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="972,473,1087,502"/><area shape="rect" id="node72" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="1192,473,1301,502"/><area shape="rect" id="node86" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="1403,326,1531,372"/><area shape="rect" id="node74" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="2044,626,2129,656"/><area shape="rect" id="node80" href="startup_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1403,550,1531,580"/><area shape="rect" id="node82" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="1420,446,1513,476"/><area shape="rect" id="node77" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="2227,626,2355,656"/><area shape="rect" id="node100" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1588,94,1732,140"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af5a9a4ba79d9d75c8230d386ff50545a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::get_expanded_table_selection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get a list of all table names and expand input that may contain wildcards (<code>*</code>) if necessary so that the array returned only contains valid table names i.e. actual tables that exist, without a wildcard.</p>
<dl class="section return"><dt>Returns</dt><dd>array An array of tables with each table name in the appropriate element of the array. </dd></dl>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00315">315</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>References <a class="el" href="sql_8drush_8inc_source.html#l00360">_drush_sql_expand_and_filter_tables()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00278">drush_sql_get_table_selection()</a>, and <a class="el" href="SqlBase_8php_source.html#l00337">Drush\Sql\SqlBase\listTables()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_af5a9a4ba79d9d75c8230d386ff50545a_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_af5a9a4ba79d9d75c8230d386ff50545a_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_af5a9a4ba79d9d75c8230d386ff50545a_cgraph" id="classDrush_1_1Sql_1_1SqlBase_af5a9a4ba79d9d75c8230d386ff50545a_cgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a69379e6e5cad1448ab76491b7c4cdd40" title="_drush_sql_expand_and\l_filter_tables" alt="" coords="248,62,411,109"/><area shape="rect" id="node9" href="sql_8drush_8inc.html#ae314e0b6e40fe3207c1481649b760c26" title="drush_sql_get_table\l_selection" alt="" coords="260,131,399,178"/><area shape="rect" id="node21" href="classDrush_1_1Sql_1_1SqlBase.html#aacc1a40283305b7ee2e1395c27e3971d" title="Drush\\Sql\\SqlBase\\listTables" alt="" coords="233,201,425,231"/><area shape="rect" id="node5" href="sql_8drush_8inc.html#a825e07c3e47e30d9febf381b814a92b0" title="drush_sql_expand_wildcard\l_tables" alt="" coords="476,5,657,51"/><area shape="rect" id="node7" href="sql_8drush_8inc.html#a860b4b13d2fbed8feddce016484d3068" title="drush_sql_filter_tables" alt="" coords="491,75,643,104"/><area shape="rect" id="node11" href="sql_8drush_8inc.html#ad45615d8733646465bac4234007f4bd6" title="_drush_sql_get_raw\l_table_list" alt="" coords="497,131,636,178"/><area shape="rect" id="node13" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="708,140,828,169"/><area shape="rect" id="node15" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="889,87,1017,116"/><area shape="rect" id="node17" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="879,140,1028,169"/><area shape="rect" id="node19" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="889,193,1017,223"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aacc1a40283305b7ee2e1395c27e3971d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::listTables </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Extract the name of all existing tables in the given database.</p>
<dl class="section return"><dt>Returns</dt><dd>array|null An array of table names which exist in the current database. </dd></dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890">Drush\Sql\Sqlmysql</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a3ba61916404cdef744d23c08d2e395b6">Drush\Sql\Sqlpgsql</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqloracle.html#accf155c63c035d3ab54f9d0d24841ccc">Drush\Sql\Sqloracle</a>, <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a62317dd9072f29c1af6a7bdd4ae42673">Drush\Sql\Sqlsqlite</a>, and <a class="el" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a765255867524cc6404b302f39e04057c">Drush\Sql\Sqlsqlsrv</a>.</p>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00337">337</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>Referenced by <a class="el" href="SqlBase_8php_source.html#l00270">Drush\Sql\SqlBase\drop_or_create()</a>, and <a class="el" href="SqlBase_8php_source.html#l00315">Drush\Sql\SqlBase\get_expanded_table_selection()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_aacc1a40283305b7ee2e1395c27e3971d_icgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_aacc1a40283305b7ee2e1395c27e3971d_icgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_aacc1a40283305b7ee2e1395c27e3971d_icgraph" id="classDrush_1_1Sql_1_1SqlBase_aacc1a40283305b7ee2e1395c27e3971d_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="256,5,419,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="248,74,427,121"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8b9bca31c78d0fbd9e688985d2c986c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::query </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$input_file</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$result_file</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Execute a SQL query.</p>
<p>Note: This is an API function. Try to avoid using <a class="el" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8">drush_get_option()</a> and instead pass params in. If you don't want to query results to print during &ndash;debug then provide a $result_file whose value can be <a class="el" href="includes_2environment_8inc.html#a3615cd67d601c69c9106c5edf3c4d424">drush_bit_bucket()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$query</td><td>The SQL to be executed. Should be NULL if $input_file is provided. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$input_file</td><td>A path to a file containing the SQL to be executed. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$result_file</td><td>A path to save query results to. Can be <a class="el" href="includes_2environment_8inc.html#a3615cd67d601c69c9106c5edf3c4d424">drush_bit_bucket()</a> if desired.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE on success, FALSE on failure </dd></dl>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00144">144</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

<p>References <a class="el" href="SqlBase_8php_source.html#l00037">Drush\Sql\SqlBase\command()</a>, <a class="el" href="SqlBase_8php_source.html#l00296">Drush\Sql\SqlBase\creds()</a>, <a class="el" href="drush_8inc_source.html#l00971">drush_file_is_tarball()</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#l01252">drush_log()</a>, <a class="el" href="drush_8inc_source.html#l00678">drush_op()</a>, <a class="el" href="filesystem_8inc_source.html#l00418">drush_save_data_to_temp_file()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, <a class="el" href="exec_8inc_source.html#l00080">drush_shell_exec()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="SqlBase_8php_source.html#l00256">Drush\Sql\SqlBase\createdb()</a>, <a class="el" href="Sqlsqlite_8php_source.html#l00074">Drush\Sql\Sqlsqlite\drop()</a>, <a class="el" href="SqlBase_8php_source.html#l00227">Drush\Sql\SqlBase\drop()</a>, <a class="el" href="Sqlsqlsrv_8php_source.html#l00041">Drush\Sql\Sqlsqlsrv\listTables()</a>, <a class="el" href="Sqlsqlite_8php_source.html#l00054">Drush\Sql\Sqlsqlite\listTables()</a>, <a class="el" href="Sqloracle_8php_source.html#l00062">Drush\Sql\Sqloracle\listTables()</a>, <a class="el" href="Sqlpgsql_8php_source.html#l00098">Drush\Sql\Sqlpgsql\listTables()</a>, and <a class="el" href="Sqlmysql_8php_source.html#l00112">Drush\Sql\Sqlmysql\listTables()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_cgraph" id="classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815" title="Drush\\Sql\\SqlBase\\command" alt="" coords="224,5,419,35"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5" title="Drush\\Sql\\SqlBase\\creds" alt="" coords="237,59,405,88"/><area shape="rect" id="node7" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="468,331,604,360"/><area shape="rect" id="node11" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1272,436,1349,465"/><area shape="rect" id="node17" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1879,592,2007,621"/><area shape="rect" id="node26" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1071,333,1108,363"/><area shape="rect" id="node39" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1676,849,1796,879"/><area shape="rect" id="node47" href="drush_8inc.html#acebe9ed4e4825e6d33ab8dff2157b676" title="drush_op" alt="" coords="859,219,933,248"/><area shape="rect" id="node54" href="group__filesystemfunctions.html#gadb66635fa63012fb084f8e96a392776d" title="drush_save_data_to\l_temp_file" alt="" coords="252,569,391,615"/><area shape="rect" id="node70" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1033,541,1145,571"/><area shape="rect" id="node84" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="653,804,776,833"/><area shape="rect" id="node9" href="drush_8inc.html#a5b8fa8d7855539af7485408e05a941c0" title="drush_attempt_mime\l_content_type" alt="" coords="824,322,968,369"/><area shape="rect" id="node13" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1489,463,1575,492"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1659,540,1813,569"/><area shape="rect" id="node20" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1688,385,1784,415"/><area shape="rect" id="node22" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1892,359,1993,388"/><area shape="rect" id="node24" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2068,359,2201,388"/><area shape="rect" id="node28" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1244,313,1377,359"/><area shape="rect" id="node36" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1241,383,1380,412"/><area shape="rect" id="node30" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1460,332,1604,361"/><area shape="rect" id="node32" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1653,332,1819,361"/><area shape="rect" id="node41" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1879,823,2007,852"/><area shape="rect" id="node43" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1868,876,2017,905"/><area shape="rect" id="node49" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1017,213,1161,259"/><area shape="rect" id="node56" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="479,612,593,641"/><area shape="rect" id="node58" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="660,612,769,641"/><area shape="rect" id="node78" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="832,751,960,798"/><area shape="rect" id="node60" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1489,695,1575,724"/><area shape="rect" id="node66" href="startup_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="832,597,960,627"/><area shape="rect" id="node68" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="849,544,943,573"/><area shape="rect" id="node63" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1672,644,1800,673"/><area shape="rect" id="node73" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1220,489,1401,519"/><area shape="rect" id="node86" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="1024,820,1155,849"/><area shape="rect" id="node88" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="1212,903,1409,932"/><area shape="rect" id="node91" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1489,849,1575,879"/><area shape="rect" id="node94" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="1233,799,1388,828"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_icgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_icgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_icgraph" id="classDrush_1_1Sql_1_1SqlBase_a8b9bca31c78d0fbd9e688985d2c986c4_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="224,5,411,35"/><area shape="rect" id="node7" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a98f4310a19c3a9ffb485588699d88d9b" title="Drush\\Sql\\Sqlsqlite\\drop" alt="" coords="236,59,399,88"/><area shape="rect" id="node9" href="classDrush_1_1Sql_1_1SqlBase.html#aaa0a1bf3fe7212db17d716fe02d144c4" title="Drush\\Sql\\SqlBase\\drop" alt="" coords="236,112,399,141"/><area shape="rect" id="node12" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a765255867524cc6404b302f39e04057c" title="Drush\\Sql\\Sqlsqlsrv\l\\listTables" alt="" coords="248,165,387,211"/><area shape="rect" id="node14" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a62317dd9072f29c1af6a7bdd4ae42673" title="Drush\\Sql\\Sqlsqlite\l\\listTables" alt="" coords="251,234,384,281"/><area shape="rect" id="node16" href="classDrush_1_1Sql_1_1Sqloracle.html#accf155c63c035d3ab54f9d0d24841ccc" title="Drush\\Sql\\Sqloracle\l\\listTables" alt="" coords="248,303,387,350"/><area shape="rect" id="node18" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a3ba61916404cdef744d23c08d2e395b6" title="Drush\\Sql\\Sqlpgsql\l\\listTables" alt="" coords="251,373,384,419"/><area shape="rect" id="node20" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890" title="Drush\\Sql\\Sqlmysql\l\\listTables" alt="" coords="248,442,387,489"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="459,50,621,97"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6c1a1bf889249c917448f356650e62d9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::scheme </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The active database driver. </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00302">302</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</a>.</p>

</div>
</div>
<a class="anchor" id="acc920b5d18da0987a8888953138c107d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\SqlBase::su </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adjust DB connection with superuser credentials if provided.</p>
<p>The options 'db-su' and 'db-su-pw' will be retreived from the specified site alias record, if it exists and contains those items. If it does not, they will be fetched via drush_get_option.</p>
<p>Note that in the context of sql-sync, the site alias record will be taken from the target alias (e.g. <code>drush sql-sync @source @target</code>), which will be overlayed with any options that begin with 'target-'; therefore, the commandline options 'target-db-su' and 'target-db-su-pw' may also affect the operation of this function.</p>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

<p>Definition at line <a class="el" href="SqlBase_8php_source.html#l00373">373</a> of file <a class="el" href="SqlBase_8php_source.html">SqlBase.php</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="SqlBase_8php_source.html#l00256">Drush\Sql\SqlBase\createdb()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_cgraph" id="classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="207,59,327,88"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="388,5,516,35"/><area shape="rect" id="node7" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="377,59,527,88"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="388,112,516,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="classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_icgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_icgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_icgraph" id="classDrush_1_1Sql_1_1SqlBase_acc920b5d18da0987a8888953138c107d_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="205,13,392,43"/><area shape="rect" id="node5" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="440,5,603,51"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>lib/Drush/Sql/<a class="el" href="SqlBase_8php_source.html">SqlBase.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:30:18 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>