Class: Hyperion::Postgres::QueryExecutorStrategy

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

Instance Method Summary collapse

Instance Method Details

#execute_write(sql_query) ⇒ Object



8
9
10
11
# File 'lib/hyperion/postgres/query_executor_strategy.rb', line 8

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