src/mako/database/query/Query.php
public function exists($query, string $separator = 'AND', bool $not = false)
	{
		if($query instanceof Closure)
		{
			$query = new Subquery($query);
		}

		$this->wheres[] =
		[
			'type'      => 'exists',
			'query'     => $query,
			'separator' => $separator,
			'not'       => $not,
		];

		return $this;
	}
public function exists($query, string $separator = 'AND', bool $not = false)
	{
		if($query instanceof Closure)
		{
			$query = new Subquery($query);
		}

		$this->wheres[] =
		[
			'type'      => 'exists',
			'query'     => $query,
			'separator' => $separator,
			'not'       => $not,
		];

		return $this;
	}
public function exists ( $ query , string $ separator = 'AND' , bool $ not = false ) { if ( $ query instanceof Closure ) { $ query = new Subquery ( $ query ) ; } $ this -> wheres [ ] = [ 'type' => 'exists' , 'query' => $ query , 'separator' => $ separator , 'not' => $ not , ] ; return $ this ; }
Adds a EXISTS clause.

@param  \Closure|\mako\database\query\Subquery $query     Subquery
@param  string                                 $separator Clause separator
@param  bool                                   $not       Not exists?
@return $this
Adds a EXISTS clause .