ActiveRecordExtended v1.2.0 Release Notes
Release Date: 2019-08-11 // over 4 years ago-
๐ Changes
- Introduce
.foster_select
a helper for select statements that can handel aliasing and provides casting options for many common aggregate functions. ๐ Supports any aggregate that does not require multiple arguments (COUNT
,AVG
,MAX
,ARRAY_AGG
, etc..): Aggregate Functions- Supports Aggregate
DISTINCT
andORDER BY
inner expressions.
- Supports Aggregate
- โฌ๏ธ Reduced the code foot-print for declaring new Arel functions
- Introduce new
Arel::Nodes::AggregateFunctionName
for dealing with inline-ingORDER BY
(will be expanded to handelFILTER
next) - ๐ Code cleanup and some minor performance tweaks
Changes to
.select_row_to_json
- Argument-less scoped blocks (inner-block argument is now optional)
cast_with:
- Supported options:
true
(array),:array
,:array_agg
,distinct
, and:to_jsonb
- Supported options:
order_by:
: Accepts ActiveRecord like options for ordering responses from an array or aggregated array
๐ Bugfixes
- Introduce