Open ivashog opened 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
kysely | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 18, 2024 9:45am |
@igalklebanov, I want to consult about the API of the future within group ()
functionality.
I see the following possible varaints:
fn.agg('mode').withinGroup(wg => wg.orderBy('field'))
:
+
: looks like SQL
-
: too verbose; need to create separate WithingGroupBuilder
fn.agg('mode').withinGroup('field')
, because within group ()
use only order by
expression@igalklebanov, I want to consult about the API of the future
within group ()
functionality. I see the following possible varaints:
- Extended -
fn.agg('mode').withinGroup(wg => wg.orderBy('field'))
:+
: looks like SQL-
: too verbose; need to create separateWithingGroupBuilder
- Simplified -
fn.agg('mode').withinGroup('field')
, becausewithin group ()
use onlyorder by
expression- Also I can try to implement both variants in one method
Hey 👋
We had a similar situation with filter (where ...)
. All current SQL specs only support where
clause there, so we decided, for simplicity, to just go with filterWhere(...)
.
So I'd go with withinGroupOrderBy(...)
for now. WDYT?
Hey 👋
We had a similar situation with
filter (where ...)
. All current SQL specs only supportwhere
clause there, so we decided, for simplicity, to just go withfilterWhere(...)
.So I'd go with
withinGroupOrderBy(...)
for now. WDYT?
OK! We think in the same direction)
closes #781