Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This sounds extremely impressive! One question: Most of my nodejs code relies heavily on a custom wrapper I built around node-mysql ... for some rather complicated historical reasons, not node-mysql2. In general, what database modules are supported out of the box (besides sqlite3)?


try mysql3! j/k. i wrote it so I'm biased but it hasn't seen much use outside my projects


heh. I understand. No one uses mine either. I wrote it around the core to cache server-side prepared statements and old PDO style bindings (WHERE `field`=:var)

I will check yours out if you post a link! or is it just node-mysql3?


https://www.npmjs.com/package/mysql3

It's main selling point is that it uses template strings so you can just do

sql`select f from t where x=${somevar}`

And the lib will take care of escaping somevar. I was getting sick of ORMs which make it even harder to write complex queries.

It's just a wrapper over mysql1 or 2. I forget which




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: