v2.2.0
===
Dataloom 2.2.0
Release Notes - dataloom
We have release the new dataloom
Version 2.2.0
(2024-02-25
)
Features
- updated documentation.
- Added operators
BETWEEN
andNOT
in filters now ypu can use them.
post = loom.find_one(
Post,
filters=Filter(
column="id",
operator="between",
value=[1, 7],
),
select=["id"],
)
post = loom.find_one(
Post,
filters=Filter(
column="id",
operator="not",
value=3,
),
select=["id"],
)
Note that the
between
operator works on value ranges that are numbers.
- Distinct row selection has been added for the method
find_all()
andfind_many()
post = loom.find_many(
Post,
filters=Filter(
column="id",
operator="between",
value=[1, 7],
),
select=["completed"],
distinct=True,
)
post = loom.find_all(
Post,
select=["completed"],
distinct=True,
)
The result will return the
distinct
rows of data based on the completed value.
- added utility functions
sum
,avg
,min
,max
andcount
to the loom object.count = loom.count( instance=Post, filters=Filter( column="id", operator="between", value=[1, 7], ), column="id", )
- Updated logger colors and formatting.
What's Changed
- Utilities by @CrispenGari in #8
Full Changelog: v2.1.1...v2.2.0