function orIgnore
orIgnore(statement: SqlStatement): SqlStatement

Rewrite a built INSERT as INSERT OR IGNORE, dropping a row whose unique key is already stored instead of raising a constraint error. This is the once-only latch resumable flows lean on: a replayed write re-derives the same key and lands nowhere. It silences every conflict on the statement, so use it only where the unique key IS the idempotency rule.

Parameters

statement: SqlStatement

Return Type

Usage

import { orIgnore } from "doc.ts";