Class: SQLConstructor::BasicDelete_mysql
- Inherits:
-
BasicDelete
- Object
- SQLObject
- GenericQuery
- BasicDelete
- SQLConstructor::BasicDelete_mysql
- Defined in:
- lib/dialects/mysql-constructor.rb
Overview
MySQL dialect descendant of BasicDelete class
Constant Summary collapse
- METHODS =
{ :low_priority => SQLConstructor::QAttr.new( :name => 'del_low_priority', :text => 'LOW_PRIORITY' ), :quick => SQLConstructor::QAttr.new( :name => 'del_quick', :text => 'QUICK '), :ignore => SQLConstructor::QAttr.new( :name => 'del_ignore', :text => 'IGNORE'), :limit => SQLConstructor::QAttr.new( :name => 'attr_limit', :text => 'LIMIT', :val => SQLObject) }
Instance Attribute Summary collapse
-
#attr_limit ⇒ Object
readonly
Returns the value of attribute attr_limit.
-
#del_ignore ⇒ Object
readonly
Returns the value of attribute del_ignore.
-
#del_low_priority ⇒ Object
readonly
Returns the value of attribute del_low_priority.
-
#del_quick ⇒ Object
readonly
Returns the value of attribute del_quick.
Attributes inherited from BasicDelete
#attr_first, #attr_from, #attr_order_by, #attr_order_by_order, #attr_skip, #attr_where, #del_using
Attributes inherited from GenericQuery
#attr_index_hints, #caller, #child_caller, #dialect, #exporter, #string, #tidy, #type
Attributes inherited from SQLObject
#alias, #inline, #name, #separator
Instance Method Summary collapse
-
#initialize(_caller) ⇒ BasicDelete_mysql
constructor
Class constructor.
-
#method_missing(method, *args) ⇒ Object
Handle JOINs or send call to the parent.
Methods inherited from GenericQuery
#_get, #_remove, #to_s, #to_str
Methods inherited from SQLObject
#_name, #_string, #_string=, get, #to_s
Constructor Details
#initialize(_caller) ⇒ BasicDelete_mysql
Class constructor.
_caller - the caller object
95 96 97 |
# File 'lib/dialects/mysql-constructor.rb', line 95 def initialize ( _caller ) super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
Handle JOINs or send call to the parent.
102 103 104 105 106 |
# File 'lib/dialects/mysql-constructor.rb', line 102 def method_missing ( method, *args ) # Handle all [*_]join calls: return _addJoin( method, *args ) if method =~ /^[a-z_]*join$/ super end |
Instance Attribute Details
#attr_limit ⇒ Object (readonly)
Returns the value of attribute attr_limit.
81 82 83 |
# File 'lib/dialects/mysql-constructor.rb', line 81 def attr_limit @attr_limit end |
#del_ignore ⇒ Object (readonly)
Returns the value of attribute del_ignore.
81 82 83 |
# File 'lib/dialects/mysql-constructor.rb', line 81 def del_ignore @del_ignore end |
#del_low_priority ⇒ Object (readonly)
Returns the value of attribute del_low_priority.
81 82 83 |
# File 'lib/dialects/mysql-constructor.rb', line 81 def del_low_priority @del_low_priority end |
#del_quick ⇒ Object (readonly)
Returns the value of attribute del_quick.
81 82 83 |
# File 'lib/dialects/mysql-constructor.rb', line 81 def del_quick @del_quick end |