1

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

Mark Lummus
  • 740
  • 8
  • 17

2 Answers2

1

No. Currently this is not a method in sails/waterline.

Meeker
  • 5,979
  • 2
  • 20
  • 38
0

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

node-sails-model-reverser

Produces static Sails / Waterline models by reverse engineering existing databases

chip
  • 3,039
  • 5
  • 35
  • 59
  • https://stackoverflow.com/questions/34034779/how-to-generate-model-from-exists-database-in-sails-js/50527553#50527553 – Vishnoo Rath May 25 '18 at 10:54