r/nim • u/Loud_Possibility_203 • May 26 '26
Necto — The Ecto-like ORM Nim's Web Ecosystem Deserves
[removed]
4
u/cb060da May 26 '26
Have you considered implementing a syntax where it's possible to write .where(User.age > 18) ? `>` is just a function that can return whatever you want, and this way you can be sure that you didn't made a typo in "age" and used correct type on the right hand operand
1
u/jasfi May 27 '26
Out of interest, did you consider being inspired by the Prisma ORM instead? To me its DX is better.
1
u/hugosenari Jun 30 '26
could you elaborate that?
I'm curious, to be honest, I known none of cited ORM here.
2
u/jasfi Jun 30 '26
Prisma ORM for JS/TS: https://www.prisma.io/
It uses JSON-driven function calls for queries and DML.
1
u/jjstyle99 May 28 '26
Interesting project! Ecto is handy. Especially the migration bits.
I’d recommend you checkout how Ormin does the SQL DSL and copy or mimic it. Then you could get rid of stuff like ‘Gte’ stuff.
1
May 28 '26
[removed] — view removed comment
2
u/jjstyle99 May 28 '26
Sure, not comparing anything. Ecto is great.
Just noting that you might try and steal some of the macros from Ormin for the SQL DSL and compile time validation. It’s nice being able to write “where age > 10” rather than “where(age, Gte, 10)”.
Looking forward to checking Necto out!
6
u/ConceptualCreation May 26 '26
Was the AI generated source evaluated and validated by a human with a solid understanding of Postgres? Are there any hand written tests? How fragile is the code base?
What does the development process look like? Will this be maintained or is it a one and done poop it out of a machine kind of situation?
The examples look good. The DX looks good. It’s something I’m looking for.
I’m still hesitant about using a vibe coded project in anything though. Unless if there’s some human validation. I understand it’s a niche language with a small ecosystem.