Perpetuity v0.5.0 Release Notes
-
- ๐ Allow querying based on referenced class/id or embedded-object data
- โ Remove duplicate references when loading associations on referenced objects
- โก๏ธ Optimize loading associations with zero/one/many objects. It is similar to
Array#detect
vsArray#select
.detect
is faster if you only need one. - ๐ Fixed a bug in defining methods on generated mapper classes which would mistakenly define them on the class instead of the mapper objects
- โ Add
none?
/one?
/all?
/any?
methods to mappers. - โ Add block functionality to
Mapper#count
, similar toEnumerable#count
- Alias
Mapper#find_all
toMapper#select
- Alias
Mapper#detect
toMapper#find
- โ Add
Mapper#reject
method to negate queries - ๐ Allow
Mapper#find
to take a block likeMapper#select
- โ Add atomic incrementation