Class: SQLConstructor::BasicUpdate_mysql

Inherits:
BasicUpdate show all
Defined in:
lib/dialects/mysql-constructor.rb

Overview

MySQL dialect descendant of BasicUpdate class

Constant Summary collapse

METHODS =
{
 :low_priority => SQLConstructor::QAttr.new( :name => 'upd_low_priority', :text => 'LOW_PRIORITY'),
 :ignore       => SQLConstructor::QAttr.new( :name => 'upd_ignore', :text => 'IGNORE' ),
 :limit        => SQLConstructor::QAttr.new( :name => 'attr_limit', :text => 'LIMIT', 
                                             :val => SQLObject )
}

Instance Attribute Summary collapse

Attributes inherited from BasicUpdate

#attr_first, #attr_order_by, #attr_skip, #attr_where, #upd_set, #upd_tables

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

Methods inherited from BasicUpdate

#update_more

Methods inherited from GenericQuery

#_get, #_remove, #method_missing, #to_s, #to_str

Methods inherited from SQLObject

#_name, #_string, #_string=, get, #to_s

Constructor Details

#initialize(_caller, *list) ⇒ BasicUpdate_mysql

Class constructor.

_caller     - the caller object


160
161
162
# File 'lib/dialects/mysql-constructor.rb', line 160

def initialize ( _caller, *list )
    super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SQLConstructor::GenericQuery

Instance Attribute Details

#attr_limitObject (readonly)

Returns the value of attribute attr_limit.



147
148
149
# File 'lib/dialects/mysql-constructor.rb', line 147

def attr_limit
  @attr_limit
end

#upd_ignoreObject (readonly)

Returns the value of attribute upd_ignore.



147
148
149
# File 'lib/dialects/mysql-constructor.rb', line 147

def upd_ignore
  @upd_ignore
end

#upd_low_priorityObject (readonly)

Returns the value of attribute upd_low_priority.



147
148
149
# File 'lib/dialects/mysql-constructor.rb', line 147

def upd_low_priority
  @upd_low_priority
end