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…

2 Likes

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

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.