All Versions
23
Latest Version
Avg Release Cycle
39 days
Latest Release
795 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.1.1 Changes
February 14, 2022๐ Changes
- #68 Defer extending Either onto ActiveRecord until ActiveRecord is loaded (cgunther)
-
v2.1.0 Changes
January 20, 2022๐ Changes
- ๐ #47 Added Rails 7.0 support (mbell697)
-
v2.0.3 Changes
June 25, 2021 -
v2.0 Changes
- In order to keep options standardized,
.select_row_to_json
will be droppingcast_to_array
in favor of thecast_with
option; Furthermore, the defaulttrue
forcast_with
option will be deprecated as well in favor of more verbose:array
option
- In order to keep options standardized,
-
v1.4.0 Changes
November 06, 2019๐ Performance tweaks:
- #33 Reduce object creations when using the ruby shorthand
&method()
.
- #33 Reduce object creations when using the ruby shorthand
-
v1.3.1 Changes
October 02, 2019๐ Bug fix:
- Prevent STI models from appending where clauses to
select_row_to_json(b)
method scopes
- Prevent STI models from appending where clauses to
-
v1.3.0 Changes
September 09, 2019โ Add Postgres Window Functions to ActiveRecord querying level.
- introduces two new methods that are used in conjunction:
.define_window
&.select_window
###define_window/1
&&partition_by/2
Defines one or many windows that will be place at the bottom of your query. This will also require you to define a partition via.parition_by(:column)/2
. partition_by/2
arguments:- column name being partitioned
order_by
Processes how the window should be orders
- introduces two new methods that are used in conjunction:
Example:
User.define_window(:w).partition_by(:name, order_by: :join_date)
select_window/4
Arguments:
- ๐ Window Function Name
- Function's arguments *optional*
over:
- The window name given when constructing
.define_window
- The window name given when constructing
as:
*optional*- Alias name to give the final result
Overall Examples:
User.define_window(:w).partition_by(:name).select_window(:row_number, over: :w, as: :r_id)
User.define_window(:w).partition_by(:name).select_window(:first_value, :id, over: :w, as: :first_id)
-
v1.2.0 Changes
August 11, 2019๐ 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
-
v1.1.0 Changes
May 04, 2019- ๐ ActiveRecord/Rails 6.0 support
- ๐ Allow for any pg gem version below v2.0
-
v1.0.1 Changes
March 29, 2019- Increased the required PG gem version range to accept
1.1.x
- Increased the required PG gem version range to accept