--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Adds a UNION clause using a second dataset object. A UNION compound dataset returns all rows in either the current dataset or the given dataset. Options:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":all - Set to true to use UNION ALL instead of UNION, so duplicate rows can occur"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":from_self - Set to false to not wrap the returned dataset in a from_self, use with care."
  - !ruby/struct:SM::Flow::P 
    body: "DB[:items].union(DB[:other_items]).sql #=&gt; &quot;SELECT * FROM items UNION SELECT * FROM other_items&quot;"
  type: :BULLET
full_name: Sequel::Dataset#union
is_singleton: false
name: union
params: (dataset, opts={})
visibility: public
