Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sails js and Sequelize

I'm learning Node.js and Sails is my framework of choice. I want to use it in a project with MySql db and I think that Sequelize Orm is more complete. How can I use Sequelize Orm in Sails instead of Waterline?

Thanks

like image 382
Mino Avatar asked Jan 18 '14 01:01

Mino


People also ask

What is the use of sails JS?

Sails is the most popular MVC framework for Node. js, designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture.

Do companies use Sequelize?

Who uses Sequelize? 88 companies reportedly use Sequelize in their tech stacks, including kevin., Barogo, and repl.it.

Is sails JS framework?

js (or Sails) is a model–view–controller (MVC) web application framework developed atop the Node. js environment, released as free and open-source software under the MIT License. It is designed to make it easy to build custom, enterprise-grade Node. js web applications and APIs.


2 Answers

I think you can as sails was born with sequelize.

You can read Mike McNeil's answer here and maybe ask Mike directly if he will reintroduce sequelize support

like image 58
CB Stilborg Avatar answered Sep 22 '22 02:09

CB Stilborg


There are two project that come out recently that i've have worked to reintroduce full support to sequelize, including blueprints.

sails-hook-sequelize

sails-hook-sequelize-blueprints

See my answer

like image 33
FXCesinha Avatar answered Sep 21 '22 02:09

FXCesinha