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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Adds an INTERSECT clause using a second dataset object. An INTERSECT compound dataset returns all rows in both the current dataset and the given dataset. Raises an InvalidOperation if the operation is not supported. Options:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":all - Set to true to use INTERSECT ALL instead of INTERSECT, 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].intersect(DB[:other_items]).sql #=&gt; &quot;SELECT * FROM items INTERSECT SELECT * FROM other_items&quot;"
  type: :BULLET
full_name: Sequel::Dataset#intersect
is_singleton: false
name: intersect
params: (dataset, opts={})
visibility: public
