Live data from Hacker News

PostgresJs: PostgreSQL client for Node.js and Deno

github.com

1–10 of 148 posts

Re: PostgresJs: PostgreSQL client for Node.js and Deno

#5
I feel obliged to namedrop Zapatos here, another postgres JS client with a remarkably similar design (sql in template strings), but fully typesafe. If TypeScript is your thing, you might appreciate it: https://jawj.github.io/zapatos/

Personally I feel it’s one of the best designed (and documented) TS libraries out there and I’m sad it’s not very well known.

Re: PostgresJs: PostgreSQL client for Node.js and Deno

#7
post #5

I feel obliged to namedrop Zapatos here, another postgres JS client with a remarkably similar design (sql in template strings), but fully typesafe. If TypeScript is your thing, you might appreciate it: https://jawj.github.io/zapatos/ Personally I feel it’s one of the best designed (and documented) TS libraries out there and I’m sad it’s not very well known.

Seconded. The lateral join features in combination with the shortcut functions make it exceptionally easy to build backends with actual SQL, without compromising on ease of use.

Re: PostgresJs: PostgreSQL client for Node.js and Deno

#9
>> Prepared statements will automatically be created for any queries where it can be inferred that the query is static

What does this mean in practice? Like, actual prepared statements are created against the DB session if there are no bound variables, even if that query is only made once?

If so, it's an interesting but highly opinionated approach...

Post reply on HN