Using existing mysql schema in nodejs

試著忘記壹切 提交于 2019-12-10 23:54:54

问题


I tried using sequelize and node-orm as well - but is there a way to reuse existing mysql schema? I Have a db schema defined with tables in mysql and wanted to use this with my node.js app (using express). So, I don't have to write all the define methods of defining tables again. Any help appreciated... I went through bunch of stackoverflow questions already such as: Which ORM should I use for Node.js and MySQL?

Thanks, JP


回答1:


Checkout bookshelf.js, it doesn't require that you define the schema in the model layer.



来源:https://stackoverflow.com/questions/15077700/using-existing-mysql-schema-in-nodejs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!