Better HN
topnewbestaskshowjobs
Log inSign up

ForbesLindesay

13 karma · joined Jul 11, 2019 (7y ago) · 19 submissions

Submissions

1.

Pug 3.0.0(medium.com ↗)

2 points · by ForbesLindesay · 6y ago · discuss

2.

Designing a Notifications Service with SQS and SNS(medium.com ↗)

2 points · by ForbesLindesay · 6y ago · discuss

3.

Is-Promise Post Mortem(medium.com ↗)

10 points · by ForbesLindesay · 6y ago · discuss

4.

Using SQLite in Expo for Offline React Native Apps(medium.com ↗)

3 points · by ForbesLindesay · 6y ago · discuss

5.

Storing JSON in Postgres Using Node.js(dev.to ↗)

5 points · by ForbesLindesay · 6y ago · discuss

6.

Streaming SQL in Node.js(itnext.io ↗)

2 points · by ForbesLindesay · 7y ago · discuss

7.

Rate Limiting(medium.com ↗)

1 points · by ForbesLindesay · 7y ago · discuss

8.

Docker over SSH(itnext.io ↗)

2 points · by ForbesLindesay · 7y ago · discuss

9.

Query Nested Data in Postgres Using Node.js(medium.com ↗)

1 points · by ForbesLindesay · 7y ago · discuss

10.

Storing JSON in Postgres Using Node.js(medium.com ↗)

2 points · by ForbesLindesay · 7y ago · discuss

comment 7y ago · link · parent

That looks like a pretty cool project. I wonder how much work it would be to integrate with https://www.atdatabases.org/ to get the proper protection from SQL Injection.

12.

The easiest way to query Postgres in Node.js(medium.com ↗)

1 points · by ForbesLindesay · 7y ago · 2 comments

comment 7y ago · link · parent

Yes, as it says in the article. The tag returns a class that's an instance of SQLQuery. All the @databases clients only accept SQLQuery instances and don't accept strings. This means you get a runtime error if you're using JavaScript, and a type error at build time if you're using TypeScript.

comment 7y ago · link · parent

No, the point is that people do write code that is unsafe. A cursory glance at recent stack overflow questions tagged with "node.js" and "sql" shows many questions and answers with SQL Injection vulnerabilities.

By providing an API that makes it virtually impossible to create an SQL Injection vulnerability, we can allow novices to write code safely. Once you know what the `sql` tag is doing, it's really easy to review the code and be confident it isn't vulnerable.

15.

SQL Injection in Node.js(atdatabases.org ↗)

8 points · by ForbesLindesay · 7y ago · 5 comments

16.

Building SQL Queries in Node.js with Tagged Template Literals(atdatabases.org ↗)

3 points · by ForbesLindesay · 7y ago · discuss