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

supabase / supabase-flutter / 40930418497
94%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2026 06:25PM UTC
Jobs 12
Files 193
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

29 Oct 2026 06:23PM UTC coverage: 94.243%. Remained the same
40930418497

push

github

web-flow
fix(postgrest)!: remove defaultToNull from the typed insert and upsert methods (#2106)

## What

Removes `defaultToNull` from the typed `insert`, `insertAll`, `upsert`
and `upsertAll` on `PostgrestTypedQueryBuilder`. Typed bulk writes now
always send `Prefer: missing=default`, and single-row writes send
nothing extra. The untyped `PostgrestQueryBuilder.insert` and `upsert`
keep `defaultToNull` with its default of `true`.

## Why

The generated `Insert` types already tell an absent field (database
default) from an explicit null (`set…ToNull()`). On the bulk methods,
`defaultToNull: true` contradicted that contract and was a second, less
precise way to write `NULL`. On the single-row methods it had no effect,
since no `columns` parameter is sent.

## Changes

- `PostgrestTypedQueryBuilder`: the four methods lose the parameter, and
their dartdoc points at `set…ToNull()` for writing `NULL`.
- `PostgrestTableRequest.defaultToNull` is removed as well, since
nothing on the typed API could set it anymore.
`PostgrestHttpTableExecutor` sends `missing=default` for a list payload
and nothing for a single row.
- Tests: the `defaultToNull: true` tests are replaced by tests that
write `NULL` through `set…ToNull()` next to a left out column, both
against the mock client and the local stack. Added assertions that
single-row insert and upsert send no `columns` and no `missing=default`.
- `MIGRATION.md`: the typed writes paragraph now points at
`set…ToNull()`, and a new section covers the removal.
- `skills_src/migrate-v3` updated, and the package skills regenerated
with `melos run sync-skills`.
- `sdk-compliance.yaml`: notes on `database.mutate.insert`, `upsert` and
`missing_defaults` pointing at the proposed spec change in
supabase/sdk#306, to be removed once that is merged.
`PostgrestTableRequest.defaultToNull` is unregistered.

## Breaking

Yes, for the typed API, which is still `@experimental`. Callers that
passed `defaultToNull: true` to `insertAll` or `upsertAll`... (continued)

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

12491 of 13254 relevant lines covered (94.24%)

6.58 hits per line

Jobs
ID Job ID Ran Files Coverage
9 supabase_flutter - 40930418497.9 29 Oct 2026 06:25PM UTC 16
89.03
GitHub Action Run
10 supabase_test - 40930418497.10 29 Oct 2026 06:25PM UTC 9
93.55
GitHub Action Run
11 supabase_functions - 40930418497.11 29 Oct 2026 06:25PM UTC 4
94.01
GitHub Action Run
12 iceberg - 40930418497.12 29 Oct 2026 06:25PM UTC 7
99.72
GitHub Action Run
11 supabase_storage - 40927974625.11 29 Oct 2026 06:12PM UTC 13
95.96
GitHub Action Run
3 yet_another_json_isolate - 40346664947.3 26 Oct 2026 03:11PM UTC 2
98.65
GitHub Action Run
2 supabase_common - 40911627463.2 29 Oct 2026 04:28PM UTC 37
94.39
GitHub Action Run
8 supabase_auth - 40927974625.8 29 Oct 2026 06:14PM UTC 34
94.81
GitHub Action Run
9 supabase - 40927974625.9 29 Oct 2026 06:13PM UTC 21
94.52
GitHub Action Run
10 supabase_typegen - 40927974625.10 29 Oct 2026 06:12PM UTC 6
94.44
GitHub Action Run
5 postgrest - 40927974625.5 29 Oct 2026 06:12PM UTC 30
92.82
GitHub Action Run
12 supabase_realtime - 40927974625.12 29 Oct 2026 06:12PM UTC 14
92.01
GitHub Action Run
Source Files on build 40930418497
  • Tree
  • List 193
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40930418497
  • 886f3d05 on github
  • Prev Build on main (#40927974625)
  • Next Build on main (#40930548214)
  • 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