src/Database/Database.php
/**
	 * Creates a new query builder for this database connection.
	 *
	 * @param string|null $type
	 * @return QueryBuilder
	 */
Creates a new query builder for this database connection.
@param string|null $type
@return QueryBuilder
Creates a new query builder for this database connection . @param string|null $type @return QueryBuilder
public function createQueryBuilder($type = null) {
		$type = strtolower($type);
		$builder = new QueryBuilder($this->getPrefix(), $this);
		if (is_null($type)) {
			return $builder;
		}
		return $builder->$type();
	}
public function createQueryBuilder ( $ type = null ) { $ type = strtolower ( $ type ) ; $ builder = new QueryBuilder ( $ this -> getPrefix ( ) , $ this ) ; if ( is_null ( $ type ) ) { return $ builder ; } return $ builder -> $ type ( ) ; }
Creates a new query builder for this database connection.
Creates a new query builder for this database connection .