alt.hn

3/5/2026 at 7:08:54 PM

SQG (SQL to Code Generator) v0.10: Java Streams and List Type Support

https://sqg.dev/blog/java-streams-and-list-types/

by uwemaurer

3/9/2026 at 6:51:22 AM

This was my first approach in realizing my PostgreSQL-centric, Db-first, or rather SQL-first vision of software development.

The project was call pgroutiner and it generated bunch of C# code for me out of PostgreSQL.

After doing couple of projects with it, I realized it wasn't enough. The new approach is a dynamic HTTTP REST API generation but, with plugin for code generation of frontend files (Typescript,. Javascript, HTTP files). This iw way better approach. Look it up, it's called npgsqlrest.github.io

by vbilopav

3/9/2026 at 11:06:41 AM

How often is this approach useful? Why not just send the SQL to the DB and get the records you need, do you have big collections of records in memory?

by nixon_why69

3/8/2026 at 10:24:13 PM

Neat! Even-though they should probably use a custom type rather than the generic "Stream" to communicate that this needs to be closed. Or remove the try-with-resource block if closing is not necessary.

This way it leaves some room for misinterpretation.

by DarkNova6

3/8/2026 at 10:29:45 PM

Thank you for the suggestion!

by uwemaurer

3/8/2026 at 10:50:51 PM

How does SQG compare to SQLDelight, for someone only interested in Kotlin and PostgreSQL?

by daveungerer

3/9/2026 at 1:41:57 AM

Love SQLC, this looks good too. Syntax is almost identical.

by barelysapient