Can we use Meteor structure with mysql database

I found many links to the Meteor structure, where I found mongodb as a database, since I have little knowledge in mongodb. So is there a way to implement mysql instead of mongodb

+4
source share
4 answers

There is a way, but on the scene of the frame right now it's a dirt road. Basically, you need to write a shell that translates from SQL to Meteor Minimongo and vice versa. This is an impossible task if you are no longer a master of Meteor and Mongo.

There were attempts to write such an adapter. The most advanced I know is: https://github.com/drorm/meteor-sql . It can be used to play, but I do not think it is ready. In addition, there is currently no way to use the Meteor accounting system with anything other than Mongo. You must either use it in any case for user accounts, or abandon the great convenience that they provide.

, , - , . , , , , - db - Javascript. , , . , , SQL .

+7

:

Meteor MongoDB , , . Meteor.Collection Mongo . minimongo, Meteor's Mongo, Meteor.Collection .

minimongo, RDBMS ( ).

- breeze.js, , .

+1

, , :

Mysql npm MongoDb Meteor Streams Arunoda. deny/allow Meteor.Collections // Mysql Mysql .

: - Mysql, , , , Meteor.Streams. .

+1

You can look at this package of meteors nodets: mysql . Use mysql on the server, and on the client, all subscriptions are updated every time db changes.

+1
source

All Articles