Module: OracleToMysql::ProtectedClassMethods
- Defined in:
- lib/oracle_to_mysql/protected_class_methods.rb
Instance Method Summary collapse
-
#otm_default_retain_options ⇒ Object
These options set what happens to an existing target if it exists a retain value of n=1, means “keep the last table arround”.
- #otm_default_strategy ⇒ Object
Instance Method Details
#otm_default_retain_options ⇒ Object
These options set what happens to an existing target if it exists a retain value of n=1, means “keep the last table arround”
10 11 12 13 14 15 16 |
# File 'lib/oracle_to_mysql/protected_class_methods.rb', line 10 def return { :n => 1, :table_name_pattern => Proc.new {|dest_table| Regexp.new(/(#{dest_table})(#{self.class::OTM_RETAIN_KEY})(\d+)/)}, :new_table_name => Proc.new {|dest_table| "#{dest_table}#{self.class::OTM_RETAIN_KEY}#{Time.now.to_i.to_s}"} } end |
#otm_default_strategy ⇒ Object
3 4 5 |
# File 'lib/oracle_to_mysql/protected_class_methods.rb', line 3 def otm_default_strategy :atomic_rename # can also be :accumulative end |