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

Function exists

drizzle-orm/src/sql/expressions/conditions.ts:396–398  ·  view source on GitHub ↗
(subquery: SQLWrapper)

Source from the content-addressed store, hash-verified

394 * @see notExists for the inverse of this test
395 */
396export function exists(subquery: SQLWrapper): SQL {
397 return sql`exists ${subquery}`;
398}
399
400/**
401 * Test whether a subquery doesn't include any result

Callers 15

testsFunction · 0.90
testsFunction · 0.90
testsFunction · 0.90
selectWithExistsMethod · 0.90
gel.test.tsFile · 0.90
bun-sql.test.tsFile · 0.90
testsFunction · 0.90
select.tsFile · 0.90
select.tsFile · 0.90
select.tsFile · 0.90
select.tsFile · 0.90
select.tsFile · 0.90

Calls 1

sqlFunction · 0.90

Tested by

no test coverage detected