Back to Kysely

Source row existence

site/docs/examples/merge/0010-source-row-existence.mdx

0.28.171.6 KB
Original Source

Source row existence

Update a target column based on the existence of a source row:

import { Playground } from '../../../src/components/Playground'

import { sourceRowExistence } from './0010-source-row-existence'

<div style={{ marginBottom: '1em' }}> <Playground code={sourceRowExistence} /> </div>

:::info[More examples] The API documentation is packed with examples. The API docs are hosted here, but you can access the same documentation by hovering over functions/methods/classes in your IDE. The examples are always just one hover away!

For example, check out these sections: