Skip to content

v2.2.0

Compare
Choose a tag to compare
@CrispenGari CrispenGari released this 25 Feb 16:37
· 33 commits to main since this release
081d1d2

===
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 and NOT 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() and find_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 and count 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

Full Changelog: v2.1.1...v2.2.0