Drush: Drush\Sql\Sqlmysql Class Reference

  1. 7.x doxygen/html/classDrush_1_1Sql_1_1Sqlmysql.html
  2. master doxygen/html/classDrush_1_1Sql_1_1Sqlmysql.html
Inheritance diagram for Drush\Sql\Sqlmysql:
Collaboration diagram for Drush\Sql\Sqlmysql:

Public Member Functions

 command ()
 creds ($hide_password=TRUE)
 silent ()
 createdb_sql ($dbname, $quoted=FALSE)
 db_exists ()
 listTables ()
 dumpCmd ($table_selection, $file)
- Public Member Functions inherited from Drush\Sql\SqlBase
 __construct ($db_spec=NULL)
 db_spec ()
 connect ($hide_password=TRUE)
 dump ($file= '')
 dumpFile ($file)
 dumpGzip ($cmd, $file)
 query ($query, $input_file=NULL, $silent=TRUE, $result_file= '')
 query_prefix ($query)
 query_format ($query)
 drop ($tables)
 createdb ($quoted=FALSE)
 drop_or_create ()
 delete ()
 scheme ()
 get_expanded_table_selection ()
 params_to_options ($parameters)
 su ()

Additional Inherited Members

- Public Attributes inherited from Drush\Sql\SqlBase
 $db_spec
 $query_extra = ''
 $query_file = '<'

Detailed Description

Definition at line 5 of file Sqlmysql.php.

Member Function Documentation

Drush\Sql\Sqlmysql::command ( )

The unix command used to connect to the database.

Returns
string

Reimplemented from Drush\Sql\SqlBase.

Definition at line 7 of file Sqlmysql.php.

Drush\Sql\Sqlmysql::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 from Drush\Sql\SqlBase.

Definition at line 59 of file Sqlmysql.php.

Drush\Sql\Sqlmysql::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 from Drush\Sql\SqlBase.

Definition at line 11 of file Sqlmysql.php.

References drush_save_data_to_temp_file().

Here is the call graph for this function:

Drush\Sql\Sqlmysql::listTables ( )

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

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

Reimplemented from Drush\Sql\SqlBase.

Definition at line 75 of file Sqlmysql.php.

References drush_shell_exec_output(), and Drush\Sql\SqlBase\query().

Here is the call graph for this function:


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

File

doxygen/html/classDrush_1_1Sql_1_1Sqlmysql.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\Sqlmysql 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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="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>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"><b>Drush</b></li><li class="navelem"><b>Sql</b></li><li class="navelem"><a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html">Sqlmysql</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classDrush_1_1Sql_1_1Sqlmysql-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Drush\Sql\Sqlmysql Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Drush\Sql\Sqlmysql:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1Sqlmysql__inherit__graph.png" border="0" usemap="#Drush_0CSql_0CSqlmysql_inherit__map" alt="Inheritance graph"/></div>
<map name="Drush_0CSql_0CSqlmysql_inherit__map" id="Drush_0CSql_0CSqlmysql_inherit__map">
<area shape="rect" id="node2" href="classDrush_1_1Sql_1_1SqlBase.html" title="Drush\\Sql\\SqlBase" alt="" coords="8,5,141,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Drush\Sql\Sqlmysql:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Sql_1_1Sqlmysql__coll__graph.png" border="0" usemap="#Drush_0CSql_0CSqlmysql_coll__map" alt="Collaboration graph"/></div>
<map name="Drush_0CSql_0CSqlmysql_coll__map" id="Drush_0CSql_0CSqlmysql_coll__map">
<area shape="rect" id="node2" href="classDrush_1_1Sql_1_1SqlBase.html" title="Drush\\Sql\\SqlBase" alt="" coords="8,5,141,35"/></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:a02d1e4138f0fed755315a360ee1c9712"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#a02d1e4138f0fed755315a360ee1c9712">command</a> ()</td></tr>
<tr class="memitem:adae34282f0fc42e0b854c98dc61a1795"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#adae34282f0fc42e0b854c98dc61a1795">creds</a> ($hide_password=TRUE)</td></tr>
<tr class="memitem:a8e2e3ab8f97ee3e9eb00d85dbd7177bb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e2e3ab8f97ee3e9eb00d85dbd7177bb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>silent</b> ()</td></tr>
<tr class="memitem:a89c709c6d185d4464d2764b9beb608d5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#a89c709c6d185d4464d2764b9beb608d5">createdb_sql</a> ($dbname, $quoted=FALSE)</td></tr>
<tr class="memitem:adae286d8ab3ff36dcb6d71a93ce6082d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adae286d8ab3ff36dcb6d71a93ce6082d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>db_exists</b> ()</td></tr>
<tr class="memitem:ada72881fa1ee6a7463c570f129c39890"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890">listTables</a> ()</td></tr>
<tr class="memitem:a85ab4d6dabc9455a9b1f3e6b583b1341"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85ab4d6dabc9455a9b1f3e6b583b1341"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dumpCmd</b> ($table_selection, $file)</td></tr>
<tr class="inherit_header pub_methods_classDrush_1_1Sql_1_1SqlBase"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classDrush_1_1Sql_1_1SqlBase')"><img src="closed.png" alt="-"/>&nbsp;Public Member Functions inherited from <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html">Drush\Sql\SqlBase</a></td></tr>
<tr class="memitem:a1cc13b953fd93a39669e536ba2929f9a inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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:aa5b21b27ff4dca05535fdbac5d0c603d inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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:a356a2b294c74818b6c8e5a51589943eb inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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:ab9b1f52154d872d643132d16e3a5063c inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9b1f52154d872d643132d16e3a5063c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dumpGzip</b> ($cmd, $file)</td></tr>
<tr class="memitem:a52e0c44fc5008ba624f54c2f439b0ae5 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a52e0c44fc5008ba624f54c2f439b0ae5">query</a> ($query, $input_file=NULL, $silent=TRUE, $result_file= '')</td></tr>
<tr class="memitem:aacc53bf685da84cca6a19cc3061d8576 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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#a52e0c44fc5008ba624f54c2f439b0ae5">query</a>)</td></tr>
<tr class="memitem:aff085fd336a133444aa050e5c139fef7 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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#a52e0c44fc5008ba624f54c2f439b0ae5">query</a>)</td></tr>
<tr class="memitem:aaa0a1bf3fe7212db17d716fe02d144c4 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa0a1bf3fe7212db17d716fe02d144c4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drop</b> ($tables)</td></tr>
<tr class="memitem:ab535d0d2d28dcbae9c83f1f62328a3a5 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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:ab979a51ea0890e00b09d3e7476d41e69 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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:a6c1a1bf889249c917448f356650e62d9 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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:aefac6f0d931a524d65ed61a5b01fd705 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_methods_classDrush_1_1Sql_1_1SqlBase"><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="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_classDrush_1_1Sql_1_1SqlBase"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classDrush_1_1Sql_1_1SqlBase')"><img src="closed.png" alt="-"/>&nbsp;Public Attributes inherited from <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html">Drush\Sql\SqlBase</a></td></tr>
<tr class="memitem:a930a43e2c3e1c6c742fb34baa6824d05 inherit pub_attribs_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_attribs_classDrush_1_1Sql_1_1SqlBase"><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 inherit pub_attribs_classDrush_1_1Sql_1_1SqlBase"><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="Sqlmysql_8php_source.html#l00005">5</a> of file <a class="el" href="Sqlmysql_8php_source.html">Sqlmysql.php</a>.</p>
</div><h2>Member Function Documentation</h2>
<a class="anchor" id="a02d1e4138f0fed755315a360ee1c9712"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\Sqlmysql::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 from <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815">Drush\Sql\SqlBase</a>.</p>

<p>Definition at line <a class="el" href="Sqlmysql_8php_source.html#l00007">7</a> of file <a class="el" href="Sqlmysql_8php_source.html">Sqlmysql.php</a>.</p>

</div>
</div>
<a class="anchor" id="a89c709c6d185d4464d2764b9beb608d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\Sqlmysql::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 from <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#aa2ae58c2f7e5c50e0d786f5d4c47dca3">Drush\Sql\SqlBase</a>.</p>

<p>Definition at line <a class="el" href="Sqlmysql_8php_source.html#l00059">59</a> of file <a class="el" href="Sqlmysql_8php_source.html">Sqlmysql.php</a>.</p>

</div>
</div>
<a class="anchor" id="adae34282f0fc42e0b854c98dc61a1795"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\Sqlmysql::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 from <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5">Drush\Sql\SqlBase</a>.</p>

<p>Definition at line <a class="el" href="Sqlmysql_8php_source.html#l00011">11</a> of file <a class="el" href="Sqlmysql_8php_source.html">Sqlmysql.php</a>.</p>

<p>References <a class="el" href="filesystem_8inc_source.html#l00401">drush_save_data_to_temp_file()</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_1Sqlmysql_adae34282f0fc42e0b854c98dc61a1795_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1Sqlmysql_adae34282f0fc42e0b854c98dc61a1795_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1Sqlmysql_adae34282f0fc42e0b854c98dc61a1795_cgraph" id="classDrush_1_1Sql_1_1Sqlmysql_adae34282f0fc42e0b854c98dc61a1795_cgraph">
<area shape="rect" id="node3" href="group__filesystemfunctions.html#gadb66635fa63012fb084f8e96a392776d" title="drush_save_data_to\l_temp_file" alt="" coords="192,252,331,299"/><area shape="rect" id="node5" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="379,261,493,290"/><area shape="rect" id="node7" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="543,219,652,249"/><area shape="rect" id="node41" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="703,323,831,369"/><area shape="rect" id="node9" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1089,31,1175,61"/><area shape="rect" id="node16" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="703,115,831,145"/><area shape="rect" id="node18" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="720,219,813,249"/><area shape="rect" id="node20" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="880,174,992,203"/><area shape="rect" id="node32" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="917,271,955,301"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1511,110,1639,139"/><area shape="rect" id="node13" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1287,31,1415,61"/><area shape="rect" id="node22" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1273,135,1428,165"/><area shape="rect" id="node25" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1041,186,1223,215"/><area shape="rect" id="node28" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1093,239,1171,269"/><area shape="rect" id="node34" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1065,292,1199,339"/><area shape="rect" id="node36" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1279,285,1423,314"/><area shape="rect" id="node38" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1477,285,1672,314"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ada72881fa1ee6a7463c570f129c39890"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Sql\Sqlmysql::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 An array of table names which exist in the current database. </dd></dl>

<p>Reimplemented from <a class="el" href="classDrush_1_1Sql_1_1SqlBase.html#aacc1a40283305b7ee2e1395c27e3971d">Drush\Sql\SqlBase</a>.</p>

<p>Definition at line <a class="el" href="Sqlmysql_8php_source.html#l00075">75</a> of file <a class="el" href="Sqlmysql_8php_source.html">Sqlmysql.php</a>.</p>

<p>References <a class="el" href="exec_8inc_source.html#l00390">drush_shell_exec_output()</a>, and <a class="el" href="SqlBase_8php_source.html#l00149">Drush\Sql\SqlBase\query()</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_1Sqlmysql_ada72881fa1ee6a7463c570f129c39890_cgraph.png" border="0" usemap="#classDrush_1_1Sql_1_1Sqlmysql_ada72881fa1ee6a7463c570f129c39890_cgraph" alt=""/></div>
<map name="classDrush_1_1Sql_1_1Sqlmysql_ada72881fa1ee6a7463c570f129c39890_cgraph" id="classDrush_1_1Sql_1_1Sqlmysql_ada72881fa1ee6a7463c570f129c39890_cgraph">
<area shape="rect" id="node3" href="group__commandwrappers.html#gadba8c59ba260dd39f615bc22ca78e1af" title="drush_shell_exec_output" alt="" coords="195,193,360,223"/><area shape="rect" id="node7" href="classDrush_1_1Sql_1_1SqlBase.html#a52e0c44fc5008ba624f54c2f439b0ae5" title="Drush\\Sql\\SqlBase\\query" alt="" coords="193,420,361,449"/><area shape="rect" id="node5" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="841,5,1039,35"/><area shape="rect" id="node9" href="classDrush_1_1Sql_1_1SqlBase.html#ac29907915d00435d999c4fe5fd611815" title="Drush\\Sql\\SqlBase\\command" alt="" coords="411,264,605,293"/><area shape="rect" id="node11" href="classDrush_1_1Sql_1_1SqlBase.html#a91bcf21091c60d1c3a85cc1fa07769b5" title="Drush\\Sql\\SqlBase\\creds" alt="" coords="424,317,592,347"/><area shape="rect" id="node13" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="867,341,1013,371"/><area shape="rect" id="node21" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="655,673,791,703"/><area shape="rect" id="node25" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1560,605,1637,635"/><area shape="rect" id="node29" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1977,487,2105,516"/><area shape="rect" id="node32" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1329,761,1441,791"/><area shape="rect" id="node39" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1367,817,1404,847"/><area shape="rect" id="node49" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1325,212,1445,241"/><area shape="rect" id="node57" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="1139,453,1213,483"/><area shape="rect" id="node64" href="group__filesystemfunctions.html#gadb66635fa63012fb084f8e96a392776d" title="drush_save_data_to\l_temp_file" alt="" coords="439,753,577,799"/><area shape="rect" id="node87" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="447,148,569,177"/><area shape="rect" id="node15" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="1099,263,1253,310"/><area shape="rect" id="node17" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="1099,333,1253,379"/><area shape="rect" id="node19" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1112,507,1240,536"/><area shape="rect" id="node23" href="drush_8inc.html#a4ff511402c9ffe30239b8bdbee33a3dc" title="drush_mime_content_type" alt="" coords="1089,712,1263,741"/><area shape="rect" id="node27" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1740,643,1895,672"/><area shape="rect" id="node35" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1508,709,1689,739"/><area shape="rect" id="node41" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1532,813,1665,859"/><area shape="rect" id="node43" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1745,817,1889,847"/><area shape="rect" id="node45" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1944,817,2139,847"/><area shape="rect" id="node51" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1535,239,1663,268"/><area shape="rect" id="node53" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1524,292,1673,321"/><area shape="rect" id="node59" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1313,487,1457,534"/><area shape="rect" id="node66" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="665,789,780,819"/><area shape="rect" id="node68" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="885,789,995,819"/><area shape="rect" id="node81" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="1112,919,1240,966"/><area shape="rect" id="node70" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1556,539,1641,568"/><area shape="rect" id="node77" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="1129,816,1223,845"/><area shape="rect" id="node73" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1753,539,1881,568"/><area shape="rect" id="node89" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="657,123,788,152"/><area shape="rect" id="node94" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1133,160,1219,189"/><area shape="rect" id="node97" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="863,109,1017,139"/></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="Sqlmysql_8php_source.html">Sqlmysql.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:05:01 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>