MyGit

0.30.10

drizzle-team/drizzle-orm

版本发布时间: 2024-05-01 22:10:12

drizzle-team/drizzle-orm最新发布版本:0.34.1(2024-10-08 04:07:09)

New Features

🎉 .if() function added to all WHERE expressions

Select all users after cursors if a cursor value was provided

async function someFunction(categories: string[] = [], views = 0) {
  await db
    .select()
    .from(users)
    .where(
       and(
          gt(posts.views, views).if(views > 100),
          inArray(posts.category, categories).if(categories.length > 0),
       ),
    );
}

Bug Fixes

相关地址:原始地址 下载(tar) 下载(zip)

1、 drizzle-orm-0.30.10-dist.tgz 657.71KB

查看:2024-05-01发行的版本