getHavingExpression

Function: getHavingExpression()

ts
function getHavingExpression(having): 
  | Aggregate<any>
| BasicExpression<any>;
function getHavingExpression(having): 
  | Aggregate<any>
| BasicExpression<any>;

Defined in: packages/db/src/query/ir.ts:165

Extract the expression from a HAVING clause HAVING clauses can contain aggregates, unlike regular WHERE clauses

Parameters

having

Where

Returns

| Aggregate<any> | BasicExpression<any>

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.