SolvedPrivate

Need a good ORM for Node.js

Posted on 2015-01-08
8
29 Views
Last Modified: 2016-02-10
I have a Node project which uses Express and MySQL, but I need an ORM. I have heard good things about Waterline.

What can you tell me about which ORM to use? Do I need Sales.JS if I want Waterline?

I have a new project so it's the best time for new frameworks, and would consider Sales.JS is there was real benefit. But I do consider the current framework to be MVC, which I suspect comes from Express: Models, Views and Routes.

I like Waterline since I may need MongoDb at some point, but expect to use MySQL exclusively, for a long while.

Thanks!
0
Comment
Question by:newbieweb
  • 4
  • 4
8 Comments
 
LVL 42

Assisted Solution

by:Rob Jurd, EE MVE
Rob Jurd, EE MVE earned 500 total points
ID: 40539332
I've used Sails with great success and the benefit is the model abstraction means that you can switch databases easily as you code uses the same syntax regardless.  I would strongly suggest Sails.
0
 
LVL 42

Assisted Solution

by:Rob Jurd, EE MVE
Rob Jurd, EE MVE earned 500 total points
ID: 40539335
http://sailsjs.org/ is built on Waterline but you don't need it just to have the ORM.  I just like the MVC framework.  Makes your code a lot more logical and clean.
0
 

Author Comment

by:newbieweb
ID: 40539343
So, Sailsjs makes it easy to export all the features of Waterline?
0
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
ID: 40539353
Absolutely.  It incorporates a lot of stuff that makes all aspects on db and content easy.  I know, I sound like I'm selling it but that's because I've found it so easy! *laughing*
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Closing Comment

by:newbieweb
ID: 40539378
Well, I decided I will use Waterline AND SailsJS !

Keep your eye out for tons more questions!
0
 

Author Comment

by:newbieweb
ID: 40539383
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 40539388
If you install Sails you get Waterline :)

Look forward to the questions!
0
 

Author Comment

by:newbieweb
ID: 40539392
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now