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

supabase / supabase-flutter / 42244032590
94%

Build:
DEFAULT BRANCH: main
Ran 06 Nov 2026 03:35PM UTC
Jobs 0
Files 0
Run time –
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

Canceled at 06 Nov 2026 03:39PM UTC via web
42244032590

push

github

web-flow
feat(postgrest): construct a PostgrestPartialRow outside a query (#2132)

## What

Adds `PostgrestPartialRow.fromJson(json, selections)`, a public way to
build the partial row a `selectOnly` returns.

Until now a `PostgrestPartialRow` could only come out of a query,
because its only constructor outside the library, `fromSelections`, is
internal. A function that maps partial rows could therefore not be
reused for rows from another source, and could not be unit tested
without stubbing a query. Users widened their selects to `*` to work
around it.

## Behavior

- The row reads exactly like the row of a `selectOnly` with the same
entries.
- It throws an `ArgumentError` when `selections` is empty, or when the
JSON lacks the key of an entry. Embedded rows are checked too, and the
error names the path, for example `items[1].sku`. It also throws when an
embed has the wrong shape: anything but a row or `null` for a to-one
relation, or anything but a list of rows for a to-many one. Without this
check a missing nullable column, derived expression or to-one embed
would silently read as `null`, so a broken test fixture would pass.
- `allColumns` and a whole embed check no columns, since the expected
columns are unknown.
- The internal `fromSelections` and `fromPresentColumns`, used for
realtime payloads, are unchanged and do not validate.

## Docs

- Realtime skill: share one typed list of columns and one mapping
between `selectOnly` and `onTableChangesOnly`. A list literal mixing
nullable and non-nullable columns infers a type neither method accepts,
so the list needs a type annotation.
- Testing skill: test a mapping of partial rows with
`PostgrestPartialRow.fromJson`.
- `PostgrestPartialRow.fromJson` is registered in `sdk-compliance.yaml`.

SDK-2911


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added support for creating partial rows from JSON usi... (continued)
Source Files on build 42244032590
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #42244032590
  • 1fc7500c on github
  • Prev Build on main (#42243813889)
  • 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