Skip to content

RAW clause

Marijn van Wezel edited this page Oct 20, 2021 · 4 revisions

The RAW clause is a pseudo-class that accepts a clause name and a clause subject.

Examples

$nested = Query::variable("nested");

$statement = Query::new()
	->raw("UNWIND", sprintf("%s AS x", $nested->toQuery()))
	->build();

$this->assertSame("UNWIND nested AS x", $statement);
Clone this wiki locally