Class: OrientDB::SQL::Delete
- Inherits:
-
Object
- Object
- OrientDB::SQL::Delete
- Defined in:
- lib/orientdb/sql/delete.rb
Instance Method Summary collapse
-
#initialize ⇒ Delete
constructor
A new instance of Delete.
- #to_s ⇒ Object
- #to_sql_command ⇒ Object
Methods included from ConditionsParametersMixin
#and, #and_not, #or, #or_not, #where, #where!
Methods included from ClassClusterParametersMixin
Methods included from UtilsMixin
#field_name, #quote, #quote_regexp, #quote_string, #select_single_string
Constructor Details
#initialize ⇒ Delete
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_s ⇒ Object
14 15 16 |
# File 'lib/orientdb/sql/delete.rb', line 14 def to_s (target_sql(:delete_from) + conditions_sql).strip end |
#to_sql_command ⇒ Object
18 19 20 |
# File 'lib/orientdb/sql/delete.rb', line 18 def to_sql_command OrientDB::SQLCommand.new to_s end |