What's the best database?

Is there an easy to learn database in nodejs that by default prevents sql injections?

No database by default prevents SQL injections.

Well NOSQL databases don’t use SQL so…


There are NoSQL injections too.

I would use MongoDB with the Mongoose npm package. It may have NOSQL injections but they are much less severe and easier to handle than SQL injections. I also find it much easier than SQL but I guess it’s up to personal preference

Well, to prevent injections you want something that doesn’t use any interperter like system to handle requests.

Sequelize and mongoose wrappers for databases prevent sql injections reasonably well

1 Like

thx so much