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

dal-go / dalgo2sql / 32639785542
100%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2026 12:35PM UTC
Jobs 1
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Aug 2026 12:34PM UTC coverage: 88.308% (+0.02%) from 88.287%
32639785542

push

github

web-flow
feat: pluggable duplicate-key classifier for Insert (#172)

Add DbOptions.IsAlreadyExists func(error) bool, a narrow hook a wrapping
adapter (dalgo2postgres, dalgo2mysql, dalgo2sqlite) fills in to teach this
package how its driver reports a unique/primary-key violation. Mirrors the
existing Placeholder PlaceholderDialect precedent: driver-specific behavior
configured by the caller, nil preserves prior behavior exactly.

execInsert is the single choke point every insert path (Insert, InsertMulti,
the transactional variants, and the ID-generator retry loop) funnels through,
so classifying there covers all of them. A classified error wraps
record.ErrRecordExists around the driver error (both %w) so callers can use
record.IsAlreadyExists while text/type matching on the original error still
works.

Bump dal-go/dalgo to v0.66.1 and dal-go/record to v0.1.3: dalgo2sql's own
dalgotest.RunConformance was silently missing the new unconditional
"rejects an Insert over an existing key with record.IsAlreadyExists" check
because it was still pinned below the dalgo version that introduced it.
Wire a minimal, test-only modernc.org/sqlite classifier into
TestConformance so the check runs for real here rather than being skipped.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

997 of 1129 relevant lines covered (88.31%)

0.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32639785542.1 23 Aug 2026 12:35PM UTC 18
88.31
GitHub Action Run
Source Files on build 32639785542
  • Tree
  • List 18
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7f582201 on github
  • Prev Build on main (#32556567847)
  • Next Build on main (#32887774111)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc