Class: Hyperion::Mysql::QueryExecutorStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/hyperion/mysql/query_executor_strategy.rb

Instance Method Summary collapse

Instance Method Details

#execute_write(sql_query) ⇒ Object



7
8
9
10
# File 'lib/hyperion/mysql/query_executor_strategy.rb', line 7

def execute_write(sql_query)
  command = Sql.connection.create_command(sql_query.query_str)
  command.execute_non_query(*sql_query.bind_values)
end