src/Database/QueryBuilder/Commands/Drop.php
/**
	 * Compiles the query into a string.
	 *
	 * @return string
	 */
Compiles the query into a string.
@return string
Compiles the query into a string . @return string
public function compile() {
		if (!is_null($this->database)) {
			return Str::join(
				'DROP DATABASE',
				($this->ifExists ? 'IF EXISTS' : ''),
				StringBuilder::formatTableName($this->database)
			) . ';';
		}
		if (!is_null($this->table)) {
			return Str::join(
				'DROP TABLE',
				($this->ifExists ? 'IF EXISTS' : ''),
				StringBuilder::formatTableName($this->builder->getPrefix() . $this->table)
			) . ';';
		}
		return '';
	}
public function compile ( ) { if ( ! is_null ( $ this -> database ) ) { return Str :: join ( 'DROP DATABASE' , ( $ this -> ifExists ? 'IF EXISTS' : '' ) , StringBuilder :: formatTableName ( $ this -> database ) ) . ';' ; } if ( ! is_null ( $ this -> table ) ) { return Str :: join ( 'DROP TABLE' , ( $ this -> ifExists ? 'IF EXISTS' : '' ) , StringBuilder :: formatTableName ( $ this -> builder -> getPrefix ( ) . $ this -> table ) ) . ';' ; } return '' ; }
Compiles the query into a string.
Compiles the query into a string .