sails.jswaterlinesails-postgresql

sailsjs: how do I reverse engineer an existing db into sails/waterline models?


I am a SailsJS noob.
I have an existing database (postgres) that I want to turn into models for SailsJS/Waterline. is there a method/tool/utility to do this automatically like the datasource.discoverSchema() method in LoopBack?

thanks,
Mark


Solution

  • https://www.npmjs.com/package/sails-model-reverser

    node-sails-model-reverser

    Produces static Sails / Waterline models by reverse engineering existing databases