Search code examples
mysqlnode.jsschemastronglooploopbackjs

Auto-create mysql table with StrongLoop


I am trying to use Strongloop with MySql but cannot figure out how to migrate or automatically create tables into a MySql database.

Is there at least a way to export the models into MySql schemas or do I have to manually create the tables?

I've been trying with the mysql demo app, and going over the docs for a while but no luck - http://docs.strongloop.com/display/DOC/MySQL+connector

Thanks!


Solution

  • LoopBack calls it auto-migration. Check these links and search for that term:

    Recipes for LoopBack Models, part 5 of 5: Model Synchronization with Relational Databases

    Data sources and connectors