import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { OnConflictBuilder } = kysely;
Adds the "do nothing" conflict action.
Examples
await db
.insertInto('person')
.values({ first_name, pic })
.onConflict((oc) => oc
.column('pic')
.doNothing()
)
The generated SQL (PostgreSQL):
insert into "person" ("first_name", "pic")
values ($1, $2)
on conflict ("pic") do nothing