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.
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).
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.
You can use Sequelize ORM, it supports MSSQL: http://docs.sequelizejs.com/en/latest/docs/getting-started/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With