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

supabase / supabase-flutter / 35597390384
94%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 12:06PM UTC
Jobs 11
Files 159
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

21 Sep 2026 12:03PM UTC coverage: 90.562% (+0.06%) from 90.5%
35597390384

push

github

web-flow
feat(postgrest)!: carry primary keys and relation columns on PostgrestTable and emit them from typegen (#1859)

Tracked in [SDK-1895](https://linear.app/supabase/issue/SDK-1895), part
of [RFC: Pluggable offline support for the client
SDKs](https://linear.app/supabase/project/rfc-pluggable-offline-support-for-the-client-sdks-3a492e9035f4).

## What

`PostgrestTable` only knew its name and row converter.
`supabase_typegen` introspected primary keys but its metadata parser
dropped them, and the generated relation constants carried only the
embed name. Anything that identifies or joins rows on the client (an
offline store, a local evaluator for embedded selects, the typed
`.stream()` primary key) had to be told what the schema already knows.

### postgrest

- `PostgrestTable(name, rowFromJson, {required primaryKey, relations =
const []})`. `primaryKey` is the list of typed key columns, empty for a
view or a keyless table. `relations` lists the table's relations.
- `PostgrestRelation<Row, Target>` sealed base with `name`, `columns`
(on this table), `referencedTable` and `referencedColumns` (on the
target, paired by index). `PostgrestToOneRelation` and
`PostgrestToManyRelation` extend it and require all of them.
- Embedded column expressions keep the `relation` they were projected
through instead of only its name.

### supabase_typegen

- The parser reads `primaryKeys` into `TableDescription.primaryKey`, in
key order and per schema.
- The generator emits `primaryKey:` and `relations:` on every table
definition and `columns:`, `referencedTable:` and `referencedColumns:`
on every relation constant, referencing the column constants of both
namespace classes. Member identifiers are now claimed once per table up
front so cross-table references resolve to the same sanitized names.
Goldens regenerated.

## Breaking changes

`PostgrestTable`, `PostgrestToOneRelation` and `PostgrestToManyRelation`
have required named parameters. All are `@experimental` on the v3 lin... (continued)

82 of 82 new or added lines in 4 files covered. (100.0%)

46 existing lines in 1 file now uncovered.

7926 of 8752 relevant lines covered (90.56%)

4.69 hits per line

Coverage Regressions

Lines Coverage ∆ File
46
87.78
0.02% packages/supabase_auth/lib/src/auth_client.dart
Jobs
ID Job ID Ran Files Coverage
3 supabase_flutter - 35597390384.3 21 Sep 2026 12:07PM UTC 14
77.87
GitHub Action Run
4 postgrest - 35597390384.4 21 Sep 2026 12:09PM UTC 21
92.59
GitHub Action Run
5 supabase_functions - 35597390384.5 21 Sep 2026 12:06PM UTC 4
93.81
GitHub Action Run
6 supabase_storage - 35597390384.6 21 Sep 2026 12:09PM UTC 9
97.61
GitHub Action Run
7 supabase_auth - 35597390384.7 21 Sep 2026 12:10PM UTC 32
92.0
GitHub Action Run
8 supabase_typegen - 35597390384.8 21 Sep 2026 12:07PM UTC 21
95.06
GitHub Action Run
9 supabase - 35597390384.9 21 Sep 2026 12:10PM UTC 16
93.66
GitHub Action Run
10 iceberg - 35597390384.10 21 Sep 2026 12:06PM UTC 6
68.52
GitHub Action Run
11 supabase_realtime - 35597390384.11 21 Sep 2026 12:10PM UTC 13
90.66
GitHub Action Run
6 yet_another_json_isolate - 34962811027.6 15 Sep 2026 11:22AM UTC 1
98.44
GitHub Action Run
2 supabase_common - 35344799042.2 18 Sep 2026 12:29PM UTC 22
87.36
GitHub Action Run
Source Files on build 35597390384
  • Tree
  • List 159
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35597390384
  • 04ce54cf on github
  • Prev Build on main (#35596988338)
  • Next Build on main (#35608843571)
  • 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