HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
agu-z
roc-pg
Roc2024–2024
agu-z / roc-pg

roc-pg

🐘 Use PostgreSQL databases from Roc

2Distinct people
2Mentions
0Explicit recommenders
57GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

🐘 Use PostgreSQL databases from Roc

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2024-08-20 17:29:02 UTC to 2024-08-21 05:05:35 UTC.

012024-08-20 17:00:00 UTC to 2024-08-20 18:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsAug 20, 17:002024-08-20 18:00:00 UTC to 2024-08-20 19:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-20 19:00:00 UTC to 2024-08-20 20:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-20 20:00:00 UTC to 2024-08-20 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-20 21:00:00 UTC to 2024-08-20 22:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-20 22:00:00 UTC to 2024-08-20 23:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-20 23:00:00 UTC to 2024-08-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsAug 20, 23:002024-08-21 00:00:00 UTC to 2024-08-21 01:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-21 01:00:00 UTC to 2024-08-21 02:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-21 02:00:00 UTC to 2024-08-21 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-21 03:00:00 UTC to 2024-08-21 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-21 04:00:00 UTC to 2024-08-21 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-08-21 05:00:00 UTC to 2024-08-21 06:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsAug 21, 05:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Aug 20, 17:002024-08-20 17:00:00 UTC2024-08-20 18:00:00 UTC101
Aug 20, 18:002024-08-20 18:00:00 UTC2024-08-20 19:00:00 UTC000
Aug 20, 19:002024-08-20 19:00:00 UTC2024-08-20 20:00:00 UTC000
Aug 20, 20:002024-08-20 20:00:00 UTC2024-08-20 21:00:00 UTC000
Aug 20, 21:002024-08-20 21:00:00 UTC2024-08-20 22:00:00 UTC000
Aug 20, 22:002024-08-20 22:00:00 UTC2024-08-20 23:00:00 UTC000
Aug 20, 23:002024-08-20 23:00:00 UTC2024-08-21 00:00:00 UTC000
Aug 21, 00:002024-08-21 00:00:00 UTC2024-08-21 01:00:00 UTC000
Aug 21, 01:002024-08-21 01:00:00 UTC2024-08-21 02:00:00 UTC000
Aug 21, 02:002024-08-21 02:00:00 UTC2024-08-21 03:00:00 UTC000
Aug 21, 03:002024-08-21 03:00:00 UTC2024-08-21 04:00:00 UTC000
Aug 21, 04:002024-08-21 04:00:00 UTC2024-08-21 05:00:00 UTC000
Aug 21, 05:002024-08-21 05:00:00 UTC2024-08-21 06:00:00 UTC101

What Hacker News says

2 sources
The README examples showcase the low-level API, but I've also made an experimental query builder that lets you write type-safe queries without the boilerplate. There’s a CLI that generates a Roc library from your database schema, that you can use through a DSL to build up a parametrized SQL query and decoder at once. See an example [1]. You’d be surprised at how nice you can make a DSL in Roc without any metaprogramming! As for Squirrel, I think it’s a great approach and definitely something I might explore in the future. Right now, I'm leaning towards a DSL for better reusability, though I must admit, that actual SQL is hard to beat! [1] https://github.com/agu-z/roc-pg/blob/62725fe3a1d92144a8408ae...
In Roc Lang – Elm but for everywhere [video]
I admire the consideration Richard and the rest of the Roc community put into the language, but I'm curious whether the absence of macros will unavoidably lead to code like https://github.com/agu-z/roc-pg?tab=readme-ov-file#examples . It's not obvious to me that the benefits of that constraint (teachability, language tooling) outweigh the costs of writing code that probably should be automated. That said, I may just be showing my lisp bias, and tools like Squirrel in Gleam are sufficient https://hexdocs.pm/squirrel/
In Roc Lang – Elm but for everywhere [video]

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.