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

golang-migrate / migrate / 43938772643
59%
master: 58%

Build:
Build:
LAST BUILD BRANCH: chore/bump-vulnerable-deps
DEFAULT BRANCH: master
Ran 16 Nov 2026 07:40PM UTC
Jobs 2
Files 61
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

16 Nov 2026 07:11PM UTC coverage: 58.618% (+2.0%) from 56.643%
43938772643

Pull #1449

github

praba2210
feat(dsql): add Amazon Aurora DSQL driver

Aurora DSQL speaks the PostgreSQL wire protocol but differs where a
migration driver touches it, so it gets its own driver rather than a
flag on postgres. Registered as dsql://, behind the dsql build tag in
the CLI as the other optional drivers are.

Authentication is IAM: the aurora-dsql pgx connector mints a token per
connection, so a password in the URL is rejected rather than ignored.

There are no advisory locks, so the migration lock is a row in a lock
table taken with INSERT ... ON CONFLICT DO NOTHING. DSQL adjudicates
conflicts at COMMIT under snapshot isolation, so two migrators racing
for the same key both succeed at statement time and the loser commits
with 40001; no rows affected and that code both mean the lock is held.
Statements retry on the OCC codes through the connector's own policy.

CREATE INDEX ASYNC and ALTER TABLE ASYNC ... VALIDATE CONSTRAINT return
a job_id instead of doing the work, so the driver reads the row, waits
on sys.wait_for_job, and reports what the job did. Running them through
Exec would discard the job_id and report a migration applied while the
index was still building. A build that fails leaves the index in place
and INVALID, so a skipped IF NOT EXISTS is checked against indisvalid
before it counts as success.

Drop clears the schema in dependency order: views, tables, sequences,
domains and functions. DROP DOMAIN takes no CASCADE here, so domains
built on other domains go before the domains they rest on, and the lock
table goes last so the lock covers the whole loop.

Tests run in three tiers: unit tests, a PostgreSQL container standing
in for the lock protocol and version bookkeeping, and a live-cluster
suite that skips unless DSQL_CLUSTER_ENDPOINT is set, since DSQL has no
local or Testcontainers image.
Pull Request #1449: feat(dsql): add Amazon Aurora DSQL driver

617 of 783 new or added lines in 1 file covered. (78.8%)

5149 of 8784 relevant lines covered (58.62%)

13327.27 hits per line

Uncovered Changes

Lines Coverage ∆ File
166
78.8
database/dsql/dsql.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.27.x - 43938772643.1 16 Nov 2026 07:42PM UTC 61
54.97
GitHub Action Run
2 Go-1.26.x - 43938772643.2 16 Nov 2026 07:40PM UTC 61
56.95
GitHub Action Run
Source Files on build 43938772643
  • Tree
  • List 61
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1449
  • PR Base - master (#43823278516)
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