Better HN
topnewbestaskshowjobs
Log inSign up

oeskeide

-1 karma · joined Apr 15, 2021 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

> We need a restrictive SQL parser to run server-side to restrict what can be run and prevent SQL injection. Maybe we need a query-builder/ORM to generate a safe intermediary SQL language in JSON so that we can validate it. Maybe taking some inspiration from Prisma’s type-safe data-mapper client could be used to help people write safe queries that won’t fail server-side validation unexpectedly.

What you are describing here is an API.