-
Notifications
You must be signed in to change notification settings - Fork 5
SET clause
Marijn edited this page Nov 29, 2021
·
5 revisions
The SET
clause accepts a set of expressions to set.
$a = Query::variable("a")->assign(Query::literal(10));
$b = Query::variable("b")->assign(Query::literal(15));
$c = Query::variable("c")->labeled(["LABEL1", "LABEL2", "LABEL3"]);
$statement = Query::new()
->set([$a, $b, $c])
->build();
$this->assertSame("SET a = 10, b = 15, c:LABEL1:LABEL2:LABEL3", $statement);