4 ms·
It can be abbreviated to SELECT: [num, name] FROM: [customers] WHERE EXISTS: SELECT: [name] FROM: [orders] WHERE: AND:
by tgv 3y ago
It can be abbreviated to
SELECT: [num, name]
FROM: [customers]
WHERE EXISTS:
SELECT: [name]
FROM: [orders]
WHERE:
AND:
- EQUALS: [customers.num, orders.customer_num]
- LT: [price, 50]
It's not that different from formatted SQL. It's uglier, though, IMO, and more error prone. But to hate YAML for the fact that SQL looks less familiar in it, is a weird take.
- brettermeier 3y ago> But to hate YAML for the fact that SQL looks less familiar in it, is a weird take. True, it's a little side hustle that's funny but doesn't necessarily make much sense.
- throwaway46281 3y agoI guess the broader point they're driving at is that attempting to port familiar programming constructs to YAML DSLs will result in this kind of ugliness. If that's true though, it's a bit too subtle for my tastes.