class Flounder::Query::Insert
An insert.
Public Class Methods
new(domain, into_entity)
click to toggle source
Calls superclass method
Flounder::Query::Base::new
# File lib/flounder/query/insert.rb, line 10 def initialize domain, into_entity super domain, Arel::InsertManager, into_entity manager.into entity.table end
Public Instance Methods
row(fields)
click to toggle source
Add one row to the inserts.
# File lib/flounder/query/insert.rb, line 18 def row fields manager.insert( fields.map { |k, v| transform_tuple_for_set(k, v) }) end