Comment by RedCrowbar

7 years ago

In EdgeQL, expressions are element-wise functions over the cross-product of the input sets:

    edgedb> SELECT {'First', 'Second'} ++ '!';
    {'First!', 'Second!'}

EdgeQL queries are essentially set comprehensions.

Right, so SELECT Table1 and SELECT 1 compose to SELECT Table1, 1 in the same way that

SELECT 1

and SELECT * FROM TABLE1 and SELECT 1 compose to

> SELECT * FROM TABLE1, (SELECT 1)

Aside from the different syntax, it is the same kind of composition. Not sure what EdgeQL has gained here, then.