function _drush_sql_get_scheme

6.x sql.drush.inc _drush_sql_get_scheme($db_spec = NULL)
3.x sql.drush.inc _drush_sql_get_scheme($db_spec = NULL)
4.x sql.drush.inc _drush_sql_get_scheme($db_spec = NULL)
5.x sql.drush.inc _drush_sql_get_scheme($db_spec = NULL)
6 calls to _drush_sql_get_scheme()
drush_sql_build_dump_command in commands/sql/sql.drush.inc
drush_sql_cli in commands/sql/sql.drush.inc
_drush_sql_connect in commands/sql/sql.drush.inc
Command callback. Emits a connect string for mysql or pgsql.
_drush_sql_get_credentials in commands/sql/sql.drush.inc
Build a fragment containing credentials and mysql-connection parameters.
_drush_sql_query in commands/sql/sql.drush.inc

... See full list

File

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

Code

function _drush_sql_get_scheme($db_spec = NULL) {
  if (is_null($db_spec)) {
    $db_spec = _drush_sql_get_db_spec();
  }
  return $db_spec['driver'];
}