Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORM for Node JS like .net Entity Framework?

Tags:

I am new in node JS, and try to implement CRUD using Node JS, Express JS , MS SQL, EJS. And I am already finished with CRUD.

But I am looking for some more reliable way to pass data or object from node to sql and vice versa.

I have to write an INSERT SQL query when I am going to insert record i.e creating entry in any table.

So, can any one know, is there any ORM which help me to deals with SQL query Like we deals in .net entity framework ?

Thank in advance.

like image 217
gaurav bhavsar Avatar asked May 05 '15 07:05

gaurav bhavsar


People also ask

Is there any ORM in node JS?

TypeORM is an ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic, React Native, NativeScript, Expo, and Electron platforms and can be used with TypeScript and JavaScript (ES5, ES6, ES7, ES8).

Which ORM is best for MongoDB?

Mongoose. If you plan on using MongoDB as your database, then Mongoose is likely going to be your ORM of choice. It's currently the most popular ORM library in the Node.


1 Answers

You can use Sequelize ORM, it supports MSSQL: http://docs.sequelizejs.com/en/latest/docs/getting-started/

like image 80
Kevin Avatar answered Sep 17 '22 02:09

Kevin