MCPcopy
hub / github.com/kysely-org/kysely / doesPetExists

Function doesPetExists

test/node/src/transaction.test.ts:405–412  ·  view source on GitHub ↗
(ownerId: number)

Source from the content-addressed store, hash-verified

403 }
404
405 async function doesPetExists(ownerId: number): Promise<boolean> {
406 return !!(await ctx.db
407 .selectFrom('pet')
408 .select('id')
409 .where('owner_id', '=', ownerId)
410 .where('name', '=', `Pet of ${ownerId}`)
411 .executeTakeFirst())
412 }
413 })
414}

Callers 1

Calls 4

executeTakeFirstMethod · 0.65
whereMethod · 0.65
selectMethod · 0.65
selectFromMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…