function _drush_sql_create

6.x sql.drush.inc _drush_sql_create($db_spec)
5.x sql.drush.inc _drush_sql_create($db_spec)
2 calls to _drush_sql_create()
drush_sql_create in commands/sql/sql.drush.inc
Command callback. Create a database.
drush_sql_empty_db in commands/sql/sql.drush.inc

File

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

Code

function _drush_sql_create($db_spec) {
  $sql = drush_sql_build_createdb_sql($db_spec, TRUE);
  // Get credentials to connect to the server, but not the database which we
  // are about to DROP. @see _drush_sql_get_credentials().
  $create_db_spec = $db_spec;
  unset($create_db_spec['database']);
  $create_db_su = drush_sql_su($create_db_spec);
  return _drush_sql_query($sql, $create_db_su);
}