Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use Meteor framework with mysql database

I found many refer url for Meteor framework where i found mongodb as database, since i don't have much knowledge in mongodb. So is there any way to implement mysql instead of mongodb

like image 798
Sunith Saga Avatar asked Dec 25 '22 19:12

Sunith Saga


1 Answers

There is a way, but at the stage the framework is right now it's an unpaved road. Basically, you'd need to write a wrapper that would translate from SQL to Meteor's Minimongo and back. It's not a feasible task if you're not a Meteor and Mongo master already.

There were attempts to write such adapter. The most advanced I know is this: https://github.com/drorm/meteor-sql . It's possible to use to play around, but I don't think it's production ready. Also, there is currently no way to use Meteor account system with anything other than Mongo. You either need to use it anyway for user accounts, or give up a great convenience they provide.

I'd advice you to try Meteor as it currently is, together with Mongo - it's easier than you think. It doesn't add too much learning curve, and besides filter and update operators you won't notice that you use some strange db at all - it's just like working with native Javascript objects. There's no schema, no migrations, no object mapping needed. You just take data, put it in a collection and forget all the rest that SQL made you think about.

like image 194
Hubert OG Avatar answered Dec 28 '22 11:12

Hubert OG