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

supabase / supabase-swift / 44363262766
96%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 05:59PM UTC
Jobs 1
Files 224
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

18 Nov 2026 05:51PM UTC coverage: 96.203% (+0.01%) from 96.191%
44363262766

push

github

web-flow
feat(postgrest): add defaultToNull to typed bulk insert and upsert (#1856)

* feat(postgrest): add defaultToNull to typed bulk insert and upsert

Typed bulk `insert` and `upsert` take `defaultToNull: Bool = true`, the
same option the untyped API and postgrest-js have. `false` sends
`Prefer: missing=default`, so a column that one row of a ragged batch
leaves out gets its `DEFAULT` instead of `null`. When the option keeps
its default, nothing is sent and PostgREST applies its own default.

A `Draft` leaves out nil optionals, and a bulk write names the union of
the rows' columns, so without this a batch that mixes drafts with and
without a defaulted `NOT NULL` column fails. A single row sends no
`columns=` and always gets the column default, so the single-row
overloads do not take the option.

* refactor(postgrest): trim defaultToNull docs and integration test setup

Point the bulk upsert docs at insert(_:defaultToNull:) instead of repeating the full text. Share the ragged batch setup in the integration tests and read the stored rows back with returning() instead of extra selects.

* test(postgrest): cover the upsert conflict path for defaultToNull

Note in the bulk upsert docs that a merged row gets the DEFAULT or null
for a column it leaves out. Seed a conflicting row in the upsert
integration test and check Preference-Applied. Rename the insert test
that expects a NOT NULL error.

10 of 10 new or added lines in 1 file covered. (100.0%)

3 existing lines in 1 file now uncovered.

16546 of 17199 relevant lines covered (96.2%)

662252.63 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
97.52
-2.48% Sources/Helpers/JSONValue/JSONValue.swift
Jobs
ID Job ID Ran Files Coverage
1 44363262766.1 18 Nov 2026 05:59PM UTC 224
96.2
GitHub Action Run
Source Files on build 44363262766
  • Tree
  • List 224
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44363262766
  • 630823d0 on github
  • Prev Build on main (#44344814752)
  • Next Build on main (#44363301106)
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