Module: GraphQL::AssociationBatchResolver::ColumnAggregator
- Defined in:
- lib/graphql/association_batch_resolver/column_aggregator.rb
Class Method Summary collapse
Class Method Details
.adapter ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/graphql/association_batch_resolver/column_aggregator.rb', line 17 def self.adapter case ActiveRecord::Base.connection.adapter_name when 'SQLite', 'Mysql2' MysqlColumnAggregator when 'PostgreSQL' PostgresColumnAggregator end end |
.aggregate(expression) ⇒ Object
9 10 11 |
# File 'lib/graphql/association_batch_resolver/column_aggregator.rb', line 9 def self.aggregate(expression) adapter.aggregate(expression) end |
.deserialize(column, type) ⇒ Object
13 14 15 |
# File 'lib/graphql/association_batch_resolver/column_aggregator.rb', line 13 def self.deserialize(column, type) adapter.deserialize(column, type) end |