3 ms·
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
by pharmakom 3y ago
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.