Ask HN: Why hasn't anyone invented a converter for ORM/raw SQL?

https://news.ycombinator.com/item?id=32283643
by jlei523 • 4 years ago
2 2 4 years ago

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.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com