Class: Arel::Nodes::DeleteStatement
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Node
|
|
Instance Chain:
self,
Node ,
::Arel::FactoryMethods
|
|
Inherits: |
Arel::Nodes::Node
|
Defined in: | activerecord/lib/arel/nodes/delete_statement.rb |
Class Method Summary
Instance Attribute Summary
Node
- Inherited
Instance Method Summary
-
#==(other)
Alias for #eql?.
- #eql?(other) ⇒ Boolean (also: #==)
- #hash
- #initialize_copy(other)
Node
- Inherited
#and | Factory method to create an And node. |
#fetch_attribute, #invert, | |
#not | Factory method to create a |
#or | |
#to_sql | FIXME: this method should go away. |
::Arel::FactoryMethods
- Included
#cast, #coalesce, #create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, | |
#lower | Create a LOWER() function. |
Constructor Details
.new(relation = nil, wheres = []) ⇒ DeleteStatement
Instance Attribute Details
#groups (rw)
[ GitHub ]#havings (rw)
[ GitHub ]#key (rw)
[ GitHub ]#limit (rw)
[ GitHub ]#offset (rw)
[ GitHub ]#orders (rw)
[ GitHub ]#relation (rw)
[ GitHub ]#wheres (rw)
[ GitHub ]Instance Method Details
#==(other)
Alias for #eql?.
# File 'activerecord/lib/arel/nodes/delete_statement.rb', line 41
alias :== :eql?
#eql?(other) ⇒ Boolean
Also known as: #==
# File 'activerecord/lib/arel/nodes/delete_statement.rb', line 30
def eql?(other) self.class == other.class && self.relation == other.relation && self.wheres == other.wheres && self.orders == other.orders && self.groups == other.groups && self.havings == other.havings && self.limit == other.limit && self.offset == other.offset && self.key == other.key end
#hash
[ GitHub ]# File 'activerecord/lib/arel/nodes/delete_statement.rb', line 26
def hash [self.class, @relation, @wheres, @orders, @limit, @offset, @key].hash end
#initialize_copy(other)
[ GitHub ]# File 'activerecord/lib/arel/nodes/delete_statement.rb', line 20
def initialize_copy(other) super @relation = @relation.clone if @relation @wheres = @wheres.clone if @wheres end