Hacker News new | past | comments | ask | show | jobs | submit login

I no longer feel the need for an ORM. Here's what I do instead:

- immutable record type for each table in the database (could be a data class)

- functions for manipulating the tables that accept or return the immutable record types and directly use SQL

- that's it

you can generate the functions from the database schema if its too much boilerplate.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: