Method: Babik::QuerySet::AbstractAggregationFunction.db_adapter

Defined in:
lib/babik/queryset/components/aggregation.rb

.db_adapterString

Return the database adapter

Returns:

  • (String)

    Database adapter: ‘mysql2’, ‘postgres’ o ‘sqlite’



77
78
79
# File 'lib/babik/queryset/components/aggregation.rb', line 77

def self.db_adapter
  Babik::Database.config[:adapter]
end