SolvedPrivate

Need a good ORM for Node.js

Posted on 2015-01-08
8
31 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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)

911 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

21 Experts available now in Live!

Get 1:1 Help Now