Generate an INSERT OR REPLACE (upsert) statement.
SQLite: INSERT OR REPLACE INTO t (a, b) VALUES (?, ?)
Postgres: INSERT INTO t (a, b) VALUES ($1, $2) ON CONFLICT (pk) DO UPDATE SET ...
OptionalprimaryKey: stringRequired for Postgres ON CONFLICT clause. Defaults to first column.
PostgreSQL dialect implementation.
Generates Postgres-compatible SQL syntax including
ON CONFLICT DO NOTHING,ON CONFLICT ... DO UPDATE SET,jsonbextraction operators,COALESCE(),GENERATED ALWAYS AS IDENTITY, and$Npositional placeholders.