Skip to content

Releases: CMHopeSunshine/cherry-orm

v1.0.0

16 May 03:16
Compare
Choose a tag to compare

What's Changed

Beta Version for Pydantic V2 support!

  • 💥 Support Pydantic v2, remove v1 support
  • 💥 Remove Python 3.8 support
  • ✨ Support group_by and distinct

Full Changelog: v0.3.0...v1.0.0

v0.3.0

12 Dec 10:12
Compare
Choose a tag to compare

Feature

  • (optional) use jsonb (such as dict) and jsonb[] (such as list[dict]) type in postgres

Full Changelog: v0.2.0...v0.3.0

v0.2.0

31 Oct 12:55
Compare
Choose a tag to compare

Breaking

  • add naming_convention for Database's metadata

Fix

  • fix Enum type priority

Other

  • upgrade sqlalchemy version
  • use ruff formatter

Full Changelog: v0.1.6...v0.2.0

v0.1.6

18 Oct 08:33
Compare
Choose a tag to compare

Fix

  • bool type was defined as int in the database

Other

  • add English readme

Full Changelog: v0.1.5...v0.1.6

v0.1.5

13 Oct 14:12
Compare
Choose a tag to compare

Fix

  • fix Literal field type error
  • fix relationship field query error when value is not a cherry.Model

Full Changelog: v0.1.4...v0.1.5

v0.1.4

07 Oct 13:12
Compare
Choose a tag to compare

Feature

  • add more json type support, such as dict[str, str], list[int], pydantic.BaseModel
  • support json field query

Full Changelog: v0.1.3...v0.1.4

v0.1.3

05 Oct 05:25
Compare
Choose a tag to compare

Feature

  • add long_text for Field so that is uses Text type in the database instead of Varchar

Fix

  • fix related_field parse error

Full Changelog: v0.1.2...v0.1.3

v0.1.2

19 Sep 07:05
Compare
Choose a tag to compare

Feature:

  • expose Database's metadata and engine for migration

Fix:

  • Occasional exception behavior in asyncio.gather

Full Changelog: v0.1.1...v0.1.2

v0.1.1

16 Sep 07:19
Compare
Choose a tag to compare

Feature

  • xx_or_create add fetch_related arg, same to filter().prefetch_related
  • xx_or_create now return tuple[model, bool]. If created, the second value vill be False, otherwise True

Fix

  • Model inherited from an abstract model is no longer abstract
  • fixed some query expression errors

Full Changelog: v0.1.0...v0.1.1

v0.1.0

14 Sep 08:08
Compare
Choose a tag to compare