Module: Vorpal::Driver::ArelQueryMethods::Methods

Defined in:
lib/vorpal/driver/postgresql.rb

Overview

Methods in this module will appear on any composable

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#vorpal_aggregate_mapper=(value) ⇒ Object (writeonly)

Sets the attribute vorpal_aggregate_mapper

Parameters:

  • value

    the value to set the attribute vorpal_aggregate_mapper to.



165
166
167
# File 'lib/vorpal/driver/postgresql.rb', line 165

def vorpal_aggregate_mapper=(value)
  @vorpal_aggregate_mapper = value
end

Instance Method Details

#load_manyObject



168
169
170
171
# File 'lib/vorpal/driver/postgresql.rb', line 168

def load_many
  db_roots = self.to_a
  @vorpal_aggregate_mapper.load_many(db_roots)
end

#load_oneObject



174
175
176
177
# File 'lib/vorpal/driver/postgresql.rb', line 174

def load_one
  db_root = self.first
  @vorpal_aggregate_mapper.load_one(db_root)
end