Skip to content

Conversation

@steve-chavez
Copy link
Member

@steve-chavez steve-chavez commented Aug 6, 2025

Support for BOM, requested on PostgREST/postgrest#1371 (comment).

select csv_agg(x, csv_options(bom := true)) from projects x;
      csv_agg
-------------------
<feeff>id,name,client_id+
 1,Windows 7,1    +
 2,Windows 10,1   +
 3,IOS,2          +
 4,OSX,2          +
 5,Orphan,
(1 row)

Also possible to do with media type handlers, but it's more convenient to have it builtin.

@coveralls
Copy link

coveralls commented Aug 6, 2025

Pull Request Test Coverage Report for Build 16817989039

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 96.875%

Totals Coverage Status
Change from base Build 16814561661: 0.1%
Covered Lines: 93
Relevant Lines: 96

💛 - Coveralls

@steve-chavez steve-chavez force-pushed the bom branch 3 times, most recently from 071a302 to ff0899d Compare August 6, 2025 22:00
@steve-chavez steve-chavez force-pushed the bom branch 3 times, most recently from 20e680d to 42c545e Compare August 7, 2025 23:17
Support for BOM, requested on PostgREST/postgrest#1371 (comment).

```sql
select csv_agg(x, csv_options(bom := true)) from projects x;
      csv_agg
-------------------
id,name,client_id+
 1,Windows 7,1    +
 2,Windows 10,1   +
 3,IOS,2          +
 4,OSX,2          +
 5,Orphan,
(1 row)
```

Also possible to do with [media type handlers](https://docs.postgrest.org/en/v12/references/api/media_type_handlers.html#overriding-a-builtin-handler),
but it's more convenient to have it builtin.
@steve-chavez steve-chavez merged commit 0718807 into PostgREST:master Aug 7, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants