src/Pgsql/PgsqlDriver.php
public function getCreateDbQuery($options, $utf)
	{
		$query = 'CREATE DATABASE ' . $this->quoteName($options->db_name) . ' OWNER ' . $this->quoteName($options->db_user);

		if ($utf)
		{
			$query .= ' ENCODING ' . $this->quote('UTF-8');
		}

		return $query;
	}
public function getCreateDbQuery($options, $utf)
	{
		$query = 'CREATE DATABASE ' . $this->quoteName($options->db_name) . ' OWNER ' . $this->quoteName($options->db_user);

		if ($utf)
		{
			$query .= ' ENCODING ' . $this->quote('UTF-8');
		}

		return $query;
	}
public function getCreateDbQuery ( $ options , $ utf ) { $ query = 'CREATE DATABASE ' . $ this -> quoteName ( $ options -> db_name ) . ' OWNER ' . $ this -> quoteName ( $ options -> db_user ) ; if ( $ utf ) { $ query .= ' ENCODING ' . $ this -> quote ( 'UTF-8' ) ; } return $ query ; }
Get the query string to create new Database in correct PostgreSQL syntax.

@param   object   $options  object coming from "initialise" function to pass user and database name to database driver.
@param   boolean  $utf      True if the database supports the UTF-8 character set, not used in PostgreSQL "CREATE DATABASE" query.

@return  string	The query that creates database, owned by $options['user']

@since   1.5.0
Get the query string to create new Database in correct PostgreSQL syntax .