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.



129
130
131
# File 'lib/vorpal/driver/postgresql.rb', line 129

def vorpal_aggregate_mapper=(value)
  @vorpal_aggregate_mapper = value
end

Instance Method Details

#load_manyObject



132
133
134
135
# File 'lib/vorpal/driver/postgresql.rb', line 132

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

#load_oneObject



138
139
140
141
# File 'lib/vorpal/driver/postgresql.rb', line 138

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