callable.sql 266 B

123456789101112
  1. /* postgres can not */
  2. /* syntax version 1 */
  3. $lambda = ($x) -> {
  4. return cast($x as String)
  5. };
  6. $callables = AsTuple(
  7. Callable(Callable<(Int32)->String>, $lambda),
  8. Callable(Callable<(Bool)->String>, $lambda),
  9. );
  10. select $callables.0(10), $callables.1(true);