Search code examples
mysqlnode.jsexpressnode-mysql

Using existing mysql schema in nodejs


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


Solution

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