Class: OrientDB::SQL::Delete

Inherits:
Object
  • Object
show all
Includes:
ClassClusterParametersMixin, ConditionsParametersMixin, UtilsMixin
Defined in:
lib/orientdb/sql/delete.rb

Instance Method Summary collapse

Methods included from ConditionsParametersMixin

#and, #and_not, #or, #or_not, #where, #where!

Methods included from ClassClusterParametersMixin

#cluster, #oclass

Methods included from UtilsMixin

#field_name, #quote, #quote_regexp, #quote_string, #select_single_string

Constructor Details

#initializeDelete

Returns a new instance of Delete.



8
9
10
11
12
# File 'lib/orientdb/sql/delete.rb', line 8

def initialize
  @oclass     = nil
  @cluster    = nil
  @conditions = []
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/orientdb/sql/delete.rb', line 14

def to_s
  (target_sql(:delete_from) + conditions_sql).strip
end

#to_sql_commandObject



18
19
20
# File 'lib/orientdb/sql/delete.rb', line 18

def to_sql_command
  OrientDB::SQLCommand.new to_s
end