Skip to content

v0.4.0

Choose a tag to compare

@Klema4 Klema4 released this 10 May 15:56
· 13 commits to main since this release

ON CONFLICT target API (0.4.0)

New features

  • ON CONFLICT target columns: .onConflict("id").doNothing() and .onConflict("unique_id").doUpdateSet(...)
  • ON CONFLICT ON CONSTRAINT: .onConflictOnConstraint("pk_users").doNothing()
  • Static helpers: InsertQuery.excluded("col") → "col = EXCLUDED.col" and InsertQuery.setClause("col", "expr") → "col = expr"
  • Unified batch columns: batch rows with different column sets now produce correct SQL with NULL padding

Deprecated (still work)

  • .onConflictDoNothing() → use .onConflict().doNothing()
  • .onConflictDoUpdate() → use .onConflict().doUpdateSet()