tink_sql
tink_sql copied to clipboard
Support the CASE expression
https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case
How about this for a syntax?
var e:Expr<String> = 'foo';
e.when("foo", 1).when("bar", 2).orElse(3);
POC: https://try.haxe.org/#8a1Ec