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.
SQL dialect abstraction for cross-platform SQL generation.
Each method returns a SQL string fragment or full statement. Implementations are pure string transformers — no database calls.