Class: Arel::SqlCompiler::MySQLCompiler

Inherits:
GenericCompiler show all
Defined in:
lib/arel/engines/sql/compilers/mysql_compiler.rb

Instance Attribute Summary

Attributes inherited from GenericCompiler

#relation

Instance Method Summary collapse

Methods inherited from GenericCompiler

#add_limit_on_delete, #delete_sql, #initialize, #insert_sql, #select_sql, #supports_insert_with_returning?, #update_sql

Constructor Details

This class inherits a constructor from Arel::SqlCompiler::GenericCompiler

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Arel::SqlCompiler::GenericCompiler

Instance Method Details

#limited_update_conditions(conditions, taken) ⇒ Object



4
5
6
7
# File 'lib/arel/engines/sql/compilers/mysql_compiler.rb', line 4

def limited_update_conditions(conditions, taken)
  conditions << " LIMIT #{taken}"
  conditions
end