Can we use Meteor framework with mysql database

后端 未结 4 1013
我寻月下人不归
我寻月下人不归 2021-01-13 15:59

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

4条回答
  •  没有蜡笔的小新
    2021-01-13 16:52

    There is maybe a way to do that but it's tricky :

    Install a Mysql driver from npm Then You can choose to use MongoDb as a first front-end or Meteor Streams from Arunoda. Then You just have to use the deny/allow system from Meteor.Collections to bind insert/update/remove from client side to Mysql You should also use the publish system to query Mysql database and return data to the client.

    The last problem is about server database observing : if something change in Mysql, it won't alert all other client, except maybe with Meteor.Streams. That could be rather fun to implement.

提交回复
热议问题