Ask HN: Why hasn't anyone invented a converter for ORM/raw SQL?
Take Prisma. Very useful to autocomplete tables and column names. Catches mistakes early.
But my workflow generally goes like this: Write raw SQL in TablePlus to see what data comes back, then translate this raw SQL query into a Prisma query.
Why not have a converter convert raw sql queries into Prisma queries?
Another use case is as soon as any of my SQL queries get complicated (20+ lines), raw SQL becomes much easier to write. It'd be nice to automatically translate this to a Prisma query.
2 comments
[ 3.8 ms ] story [ 18.5 ms ] threadhttps://en.m.wikipedia.org/wiki/Object%E2%80%93relational_im...