← 返回事件
持续讨论科技发版8.0.0-rc.11

v8.0.0-rc.11-dev.21: feat(orm): prepare aggregate and grouped queries (#30309)

发生了什么

Linked issue Builds on #30260 and #30289 . At a glance From the public SQLite acceptance test, using its existing db and runtime : db.orm.Post.groupBy('userId') .having((h) => h.count().gte(p.minimum)) .orderBy((post) => post.userId.asc()) .limit(p.take) .prepared.aggregate((agg) => ({ total: agg.countBigInt(), views: agg.sum('views') })), ); await grouped.query(runtime, { minimum: 2, take: 1 }); // [{ userId: 1, to…

摘要按规则整理自下方来源原文

为什么在扩散

来源