Re:Flyweight: An ORM for SQLite
by int_19h on Thursday September 29, 2022 @10:57PM
(#33030349)
If I'm reading this correctly, it doesn't handle object graph traversal - if you need it, you have to write your own JOIN manually, and then the library will wrap that. I would argue that graph traversal is one of the basic features of an ORM.
[ Parent
| on HN ]
Re:Flyweight: An ORM for SQLite
by unemployable on Friday September 30, 2022 @12:23AM
(#33030905)
In an ORM, you will write
include: ['posts']
in SQL, you will write join posts on p.authorId = a.id
I would argue an ORM is more about getting the flat structure of the result set into an hierarchical set of objects with more complex types.