Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
_drush_sql_get_database($db_url = NULL)
contributions/drush/drush_sql/drush_sql.module, line 283
<?php
function _drush_sql_get_database($db_url = NULL) {
if (is_null($db_url)) {
$db_url = $GLOBALS['db_url'];
}
$url = (object)parse_url($db_url);
return substr($url->path, 1);
}
?>