drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Improved types for conditions

Open
#4,466 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Conditions such as `gte` or `eq` are SQL expressions that resolve to a boolean value. However, they are typed as `SQL` (by omitting the generic) rather than `SQL`.

Having them properly typed would improve their ergonomics, specially when building helpers for more advanced expressions, such as the [`CASE` expression](https://www.postgresql.org/docs/current/functions-conditional.html#FUNCTIONS-CASE).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.