Repository navigation
GH#14679: tighten mutations cheatsheet - #14691
Conversation
- Add top-level .returning() note covering all mutation types - Remove redundant per-method .returning() examples (update section) - Consolidate conflict handling (upsert + ignore) into single block - Shorten self-evident inline comments Zero content loss: all code patterns, API methods, and examples preserved. Closes #14679
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report SonarCloud: 0 bugs, 0 vulnerabilities, 1 code smells Tue Mar 31 06:23:41 UTC 2026: Code review monitoring started 📈 Current Quality Metrics
Generated on: Tue Mar 31 06:23:44 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
Closing SummaryWhat was done:
Testing evidence:
Key decisions:
Files changed:
Blockers:
Follow-up:
Closes #14679 aidevops.sh v3.5.505 plugin for OpenCode v1.3.9 with claude-opus-4-6 spent 3m on this as a headless worker. |



Summary
.agents/services/database/postgres-drizzle-skill/cheatsheet-mutations.mdfrom 65 to 56 lines (14% reduction).returning()note covering all mutation types, eliminating redundant per-method examplesClassification
Reference corpus chapter — already part of a split cheatsheet structure. Tightened prose and removed redundant code examples; zero content loss.
Changes
What was removed:
.returning()example in Update section (redundant — covered by new top-level note + existing examples in Insert/Delete)// Single insertcomment (self-evident from code)onConflictDoUpdateandonConflictDoNothing(related patterns, grouped)What was added:
.returning()to get affected rows back"// Upsert (on conflict)(more descriptive than bare// Upsert)Content Preservation Verification
All code patterns verified present:
insert().values().returning(), batch insert,onConflictDoUpdate,onConflictDoNothing,update().set().where(), SQL template increment,delete().where(),delete().returning(),transaction(),tx.rollback().No task IDs, URLs, or command examples existed in this file to preserve.
Runtime Testing
Closes #14679
aidevops.sh v3.5.505 plugin for OpenCode v1.3.9 with claude-opus-4-6 spent 2m on this as a headless worker.