lib/ronin/sql/clauses.rb in ronin-sql-1.0.0 vs lib/ronin/sql/clauses.rb in ronin-sql-1.1.0
- old
+ new
@@ -23,10 +23,12 @@
module Ronin
module SQL
#
# Methods for creating common SQL {Clause Clauses}.
#
+ # @api public
+ #
module Clauses
#
# The defined clauses of the statement.
#
# @return [Array<Clause>]
@@ -166,9 +168,20 @@
#
# @return [self]
#
def union(&block)
clause(:UNION,&block)
+ end
+
+ #
+ # Appends a `UNION ALL` clause.
+ #
+ # @return [self]
+ #
+ # @since 1.1.0
+ #
+ def union_all(&block)
+ clause([:UNION, :ALL],&block)
end
#
# Appends a `GROUP BY` clause.
#