MCPcopy
hub / github.com/drizzle-team/drizzle-orm / min

Function min

drizzle-orm/src/sql/functions/aggregate.ts:127–129  ·  view source on GitHub ↗
(expression: T)

Source from the content-addressed store, hash-verified

125 * ```
126 */
127export function min<T extends SQLWrapper>(expression: T): SQL<(T extends AnyColumn ? T['_']['data'] : string) | null> {
128 return sql`min(${expression})`.mapWith(is(expression, Column) ? expression : String) as any;
129}

Callers 7

testsFunction · 0.90
testsFunction · 0.90
testsFunction · 0.90
aggregateFunctionMinMethod · 0.90
gel.test.tsFile · 0.90
bun-sql.test.tsFile · 0.90
testsFunction · 0.90

Calls 3

sqlFunction · 0.90
isFunction · 0.90
mapWithMethod · 0.80

Tested by

no test coverage detected