• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / psql / 22801727379

07 Mar 2026 03:25PM UTC coverage: 69.792% (+0.5%) from 69.319%
22801727379

push

github

MagicalTux
Add hooks and associations support

Hooks: Interface-based lifecycle callbacks (BeforeInsert, AfterInsert,
BeforeUpdate, AfterUpdate, BeforeSave, AfterSave, AfterScan) called
during CRUD operations. Structs implement hook interfaces to receive
callbacks. Hook errors abort the operation.

Associations: Tag-based relationships (belongs_to, has_one, has_many)
declared via `psql` struct tags. Preload function loads related objects
efficiently using IN queries. WithPreload option for automatic loading
in Fetch/Get/FetchOne operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

215 of 309 new or added lines in 8 files covered. (69.58%)

1 existing line in 1 file now uncovered.

2992 of 4287 relevant lines covered (69.79%)

84.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/replace.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc