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

dal-go / dalgo2postgres / 41800320040
100%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 08:36AM UTC
Jobs 1
Files 22
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

04 Nov 2026 08:32AM UTC coverage: 100.0%. Remained the same
41800320040

push

github

web-flow
feat: implement dbschema.NativeAccessReader from the PostgreSQL catalog (#37)

Implements `dbschema.NativeAccessReader` (dal-go/dalgo v0.100.0, dal-go/dalgo#235) from the PostgreSQL catalog. It answers which roles can natively reach a table, and why.

Why, Alexander Trakhimenok (founder), 2026-11-04, verbatim:
- "if we need to read Postgres schema, that should be done in Dalgo adapter, not custom something."
- On the interface: "Yes, approve it".

How it works:
- **One statement, one snapshot.** It reads roles, memberships, database, table, columns, schema ACLs and `pg_inherits` relatives; it never reads `rolpassword`.
- **A pure Go resolver** follows membership routes: self, inherited, SET ROLE, and self-grant via ADMIN OPTION or pre-16 CREATEROLE. It covers superusers, owners, PUBLIC, `pg_read_all_data` / `pg_write_all_data`, the server-file roles, `pg_database_owner`, and column privileges.
- **Partitions and inheritance,** with row security and schema USAGE taken from the relation each grant comes through.
- **Never "nobody".** Unresolved input adds gaps and makes coverage unknown; a missing table is not-found; a server older than 13 is NotSupported. What the catalog can't show (pg_hba, cloud IAM, SECURITY DEFINER, replicas and so on) is always stated as a blind spot.

Also bumps dalgo to v0.100.0; the fixture manifests are re-pinned, with byte-identical files. CI matrix: PostgreSQL 15, 17 and 18. The 15 leg is new and runs the pre-16 paths for real.

Tests:
- 100% unit coverage; vet and golangci-lint clean.
- Live PostgreSQL 17.11: 3850 passed; no roles or schemas left behind.

Independent review over three rounds; the final review approves 724f13c. Remaining Lows, for later:
- one namespace-access value per principal; per-privilege would need a dalgo API change;
- README wording on table-level vs per-principal row security;
- built-in-role grants counted on the table itself.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Source... (continued)

404 of 404 new or added lines in 2 files covered. (100.0%)

1890 of 1890 relevant lines covered (100.0%)

1.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41800320040.1 04 Nov 2026 08:36AM UTC 22
100.0
GitHub Action Run
Source Files on build 41800320040
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 544e02d8 on github
  • Prev Build on main (#41238728872)
  • Next Build on main (#42880669800)
  • 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