class Ridgepole::ExecuteExpander
Public Class Methods
Source
# File lib/ridgepole/execute_expander.rb, line 99 def expand_execute(connection) return if connection.is_a?(ConnectionAdapterExt) connection.class_eval do prepend ConnectionAdapterExt end end
Source
# File lib/ridgepole/execute_expander.rb, line 92 def with_alter_extra(extra) self.alter_extra = extra yield ensure self.alter_extra = nil end
Source
# File lib/ridgepole/execute_expander.rb, line 83 def with_script(script, logger) self.use_script = true self.sql_executer = Ridgepole::ExternalSqlExecuter.new(script, logger) yield ensure self.use_script = false self.sql_executer = nil end
Source
# File lib/ridgepole/execute_expander.rb, line 74 def without_operation(callback = nil) self.noop = true self.callback = callback yield ensure self.noop = false self.callback = nil end