4 ms·
> like I said Slick is not an ORM whereas Diesel is. I personally find "ORM" to be such a broad term as to be almost meaningless. This may be a personal proble
by steveklabnik 9y ago
> like I said Slick is not an ORM whereas Diesel is.
I personally find "ORM" to be such a broad term as to be almost meaningless. This may be a personal problem :)
I see now. I am pretty sure that you could write
posts.filter(user_id.eq(1)).load(&connection)
if you wanted; the belonging_to is just fancier and a bit shorter.
Anyway, thank you! I've mentally filed a "check out Slick sometime" bug for my infinite personal-to-do list :)
- neverminder 9y agoNo problem, I guess what I'm trying to say is that just like Rust took inspiration from Scala syntax (at least I get this feeling), maybe so could Diesel from Slick.
- rabidferret 9y agoSlick was definitely an influence on Diesel's design. I tried to have our query builder map more closely to SQL though, whereas Slick feels like it's trying to pretend it's just an Iterable.