public function SqlBase::createdb_sql

8.0.x SqlBase.php public SqlBase::createdb_sql($dbname, $quoted = FALSE)
7.x SqlBase.php public SqlBase::createdb_sql($dbname, $quoted = FALSE)
master SqlBase.php public SqlBase::createdb_sql($dbname, $quoted = FALSE)

Build a SQL string for dropping and creating a database.

Parameters

string dbname: The database name.

boolean $quoted: 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.

1 call to SqlBase::createdb_sql()
SqlBase::createdb in lib/Drush/Sql/SqlBase.php
Create a new database.
4 methods override SqlBase::createdb_sql()
Sqlmysql::createdb_sql in lib/Drush/Sql/Sqlmysql.php
Build a SQL string for dropping and creating a database.
Sqloracle::createdb_sql in lib/Drush/Sql/Sqloracle.php
Build a SQL string for dropping and creating a database.
Sqlpgsql::createdb_sql in lib/Drush/Sql/Sqlpgsql.php
Build a SQL string for dropping and creating a database.
Sqlsqlite::createdb_sql in lib/Drush/Sql/Sqlsqlite.php
Build a SQL string for dropping and creating a database.

File

lib/Drush/Sql/SqlBase.php, line 234

Namespace

Drush\Sql

Class

SqlBase

Code

public function createdb_sql($dbname, $quoted = FALSE) {
}