drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Ability to filter count and countDistinct
Open
enhancement
qb/crud
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Feature hasn't been suggested before.
- [X] I have verified this feature I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
I want to be able to write queries like:
await db.select({
foos: count().filter(eq(rows.type, 'Foo'),
bars: count().filter(eq(rows.type, 'Bar')
})
.from(rows)
same with countDistinct
Contributor guide
Assessment
This issue has not been assessed yet.