Skip to content

Releases: joyparty/entity

v0.8.4

15 Nov 02:59

Choose a tag to compare

  • Add NewUpsertTarget()

v0.8.3

27 Sep 03:52

Choose a tag to compare

  • 重构实体对象字段解析,保证与内嵌类型字段优先级规则一致

v0.8.2

20 Sep 10:06

Choose a tag to compare

  • Add SavePoint helper function

v0.8.1

18 Sep 09:37

Choose a tag to compare

  • Transaction helper with context

v0.8.0

18 Sep 02:58

Choose a tag to compare

  • [Breaking Change] 使用泛型改造transaction helper函数,依赖接口而非固定的sqlx.DB和sqlx.Tx
  • NewUpsertRecord() 从Entity类型构造相应的 insert ... on conflict do update 记录

v0.7.4

12 Aug 04:36

Choose a tag to compare

  • repository增加Get方法,使用查询语句返回一条记录

v0.7.3

03 Aug 06:09

Choose a tag to compare

  • 当实体对象存在自增主键时,upsert方法会返回错误

v0.7.2

03 Aug 05:50

Choose a tag to compare

  • 实现upsert方法

v0.7.1

03 Aug 04:14

Choose a tag to compare

  • Breaking Chagne:
    • rename Repository.Save() to Repository.Update()
    • rename Repository.Update() to Repository.UpdateBy()
  • Add DomainObjectRepository

v0.7.0

30 May 07:58

Choose a tag to compare

  • 简化repository构造,调用方不再需要提供factory函数