问题
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