News for hackers. Stuff that matters.
Re:Show HN: Node.js ORM to query SQL database through an arr... by sigseg1v on Thursday September 05, 2024 @10:28AM (#41456971)
Cool project!

Looking at the docs, for example the pg connector, I couldn't easily find information about how it parameterizes the queries built through method chaining.

For example, if I run

   .filter(user => user.name.eq(unsanitizedInput))
I am presuming that the unsanitizedInput will be put into a parameter? For me, using ORMs on a team that may include juniors, that is one of the key things an ORM provides: the ability to know for sure that a query is immune to SQL injection.

If you had more examples on the connectors of queries like this, and also maybe some larger ones, with the resulting SQL output, I think that might increase adoption.

Re:Show HN: Node.js ORM to query SQL database through an arr... by tilyupo on Thursday September 05, 2024 @10:34AM (#41457028)
Qustar parametrizes all queries by default, so it's immune to SQL injections. I'll add info about that with examples to the docs, thank for the feedback!