more operations;
authorwenzelm
Mon, 21 Aug 2023 10:53:50 +0200
changeset 78544 3be0437759cf
parent 78543 cfdb586adbbd
child 78545 5f4ca329fde4
more operations;
src/Pure/General/sql.scala
--- a/src/Pure/General/sql.scala	Mon Aug 21 10:53:26 2023 +0200
+++ b/src/Pure/General/sql.scala	Mon Aug 21 10:53:50 2023 +0200
@@ -60,6 +60,10 @@
   val join_inner: Source = " INNER JOIN "
   def join(outer: Boolean): Source = if (outer) join_outer else join_inner
 
+  def MULTI(args: Iterable[Source]): Source =
+    args.iterator.filter(_.nonEmpty).mkString(";\n")
+  def multi(args: Source*): Source = MULTI(args)
+
   def infix(op: Source, args: Iterable[Source]): Source = {
     val body = args.iterator.filter(_.nonEmpty).mkString(" " + op + " ")
     if_proper(body, enclose(body))