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

PostgREST / pg_csv / 31996132686
99%

Build:
DEFAULT BRANCH: master
Ran 17 Aug 2026 04:57AM UTC
Jobs 1
Files 5
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

17 Aug 2026 04:55AM UTC coverage: 98.842% (-0.3%) from 99.099%
31996132686

push

github

steve-chavez
add: csv_read function

The `csv_read(anyelement, text)` function can read inline text values, respecting quoting and escaping inside quotes.

```sql
select id, name
from csv_read(null::projects, E'1,IOS,4\n2,"Win""dows",4') where id = 2;
 id |   name
----+----------
  2 | Win"dows
```

This allows for greater flexibility, csv_read can be combined with
pg_read_file, inserts, limit/offset, etc.

Notes
-----

- For performance it uses SIMD parsing (via cparsec.h, which uses memchr) and avoids pallocing in
  the hot path (see `csv_slice_to_cstr`, which is a bit of a trick).
- Performance is checked by comparing to COPY CSV, this is included in
  the bench tests.

110 of 112 new or added lines in 2 files covered. (98.21%)

256 of 259 relevant lines covered (98.84%)

904.27 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.3
src/csv.h
1
98.69
0.16% src/pg_csv.c
Jobs
ID Job ID Ran Files Coverage
1 31996132686.1 17 Aug 2026 04:57AM UTC 5
98.84
GitHub Action Run
Source Files on build 31996132686
  • Tree
  • List 5
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31996132686
  • a3151af2 on github
  • Prev Build on master (#31357407823)
  • 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