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

Function insertPet

test/node/src/transaction.test.ts:357–369  ·  view source on GitHub ↗
(
      trx: Transaction<Database>,
      ownerId: number,
    )

Source from the content-addressed store, hash-verified

355 })
356
357 async function insertPet(
358 trx: Transaction<Database>,
359 ownerId: number,
360 ): Promise<void> {
361 await trx
362 .insertInto('pet')
363 .values({
364 name: `Pet of ${ownerId}`,
365 owner_id: ownerId,
366 species: 'cat',
367 })
368 .execute()
369 }
370
371 async function insertPerson(
372 trx: Transaction<Database>,

Callers 1

executeThreadFunction · 0.85

Calls 3

valuesMethod · 0.80
executeMethod · 0.65
insertIntoMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…